Re: [PATCH] Add git-imap-send.

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

 



Linus Torvalds <torvalds@xxxxxxxx> writes:

>> > ... They won't be used in the eventual result, but 
>> > just the fact that they are loaded from memory can mean that your program 
>> > takes a SIGSEGV, for example, becaue it turns out "string" was just a 
>> > single NUL byte at the end of a page, and there's nothing after it.
>> 
>> Funny.  I've seen this exact bug in memcmp and strcmp in earlier
>> SunOS (pre Solaris) libc when I was working on something like
>> Valgrind in my previous life.
>
> Well, Valgrind actually can complain for no good reason.

To clarify, it was _not_ Valgrind I was mucking with.  And the
optimization used in the system library was wrong -- it stepped
over the page boundary without checking.  I found that it was
fixed in later releases (that was all before Sun started
calling their system Solaris).

-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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]