Re: [PATCH 1/1] vreportf(): avoid buffered write in favor of unbuffered one

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

 



Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes:

> I really believe that the care I put into the patch to safeguard against
> overly long prefixes is seriously overkill.

If it was buggy, the care given to it probably was insufficient, not
overkill ;-)

As long as we know there won't be an overflow, and our compilers
won't complain about possible overflow, simpler code that is easier
to reason about is better.  I tend to think that Peff's
"consistently count based on offsets, instead of pointer arithmetic
that you can easily get wrong" would give us an easier-to-read
result in this case.

Thanks for simplifying the original "overkill" version.  Except for
the bug resulting from misunderstanding of strlcpy() return value,
the version I saw was a quite pleasant read.





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux