bug-coreutils
[Top][All Lists]
Advanced

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

bug#50611: one-byte (write) heap-buffer-underrun


From: Paul Eggert
Subject: bug#50611: one-byte (write) heap-buffer-underrun
Date: Thu, 16 Sep 2021 11:51:02 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 9/16/21 4:34 AM, Pádraig Brady wrote:
It got me thinking though, that we should not we warning/failing on blank lines.
I.e., we should be treating blank lines like comments.
The attached does that.

Thaks, a good improvement. The nerd in me also suggests changing this:

      line[line_length] = '\0';

      /* Ignore blank lines.  */
      if (line_length == 0)
        continue;

to this:

      /* Ignore empty lines.  */
      if (line_length == 0)
        continue;

      line[line_length] = '\0';






reply via email to

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