nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] File size problem in the status bar


From: Liu Hao
Subject: Re: [Nano-devel] File size problem in the status bar
Date: Mon, 13 Aug 2018 10:18:08 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

在 2018/7/21 14:45, Benno Schulenberg 写道:
Op 20-07-18 om 16:48 schreef Liu Hao:
2) I intermittently get garbage file size values on the status bar. I don't know
how to reproduce this. Eventually I had Valgrind attached to nano and it caught
use of an uninitialized value in winio.c on the following line:

```
charpct = (openfile->totsize == 0) ? 0 : 100 * sum / openfile->totsize;
```
, where `openfile->totsize` seemed uninitialized, as `sum` looked normal.


It seems that this has been addressed and fixed by fd65f744286 (as it seems impossible otherwise). I will keep an eye on this. Thanks for the investigation.


--
Best regards,
LH_Mouse




reply via email to

[Prev in Thread] Current Thread [Next in Thread]