https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7304

Hanno Boeck <ha...@hboeck.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ha...@hboeck.de

--- Comment #2 from Hanno Boeck <ha...@hboeck.de> ---
You're making specific assumptions about the implementation of memcmp, however
there's nothing in the C standard that allows you to make such assumptions. The
comparison could be implemented in any way, e.g. by comparing chunks or
starting the comparison at the end of the buffer.

strncmp does exactly what you want - it ends reading the buffer at the first
zero byte.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to