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

Bug#885582: stretch-pu: package ncurses/6.0+20161126-1+deb9u2



On 2018-02-10 11:08 +0100, Julien Cristau wrote:

> Control: tag -1 moreinfo
> [...]
> Thanks, go ahead.

This is contradictory.  Did you meant to tag the bug "confirmed" rather
than "moreinfo"?

>> +--- a/ncurses/tinfo/write_entry.c
>> ++++ b/ncurses/tinfo/write_entry.c
>> +@@ -267,6 +267,9 @@ _nc_write_entry(TERMTYPE *const tp)
>> + #endif
>> + #endif /* USE_SYMLINKS */
>> + 
>> ++    unsigned limit2 = sizeof(filename) - (2 + LEAF_LEN);
>> ++    char saved = '\0';
>> ++
>> +     static int call_count;
>> +     static time_t start_time;	/* time at start of writes */
>> + 
>> +@@ -365,12 +368,18 @@ _nc_write_entry(TERMTYPE *const tp)
>> + 	start_time = 0;
>> +     }
>> + 
>> +-    if (strlen(first_name) >= sizeof(filename) - (2 + LEAF_LEN))
>> ++    if (strlen(first_name) >= sizeof(filename) - (2 + LEAF_LEN)) {
>
> kind of curious that limit2 wasn't used here...

Good point, I reported this upstream:
https://lists.gnu.org/archive/html/bug-ncurses/2018-02/msg00016.html.

Cheers,
       Sven


Reply to: