[systemd-devel] [PATCH] remove hasprefix(), use startswith()

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Aug 21 21:49:51 PDT 2013


On Wed, Aug 21, 2013 at 06:20:55PM -0700, Shawn Landden wrote:
> memcmp() could read from uninitilized memory if string is at the end
> of a page boundry and shorter than prefix
Applied, but without this description, since it is misleading: afaict, in all
cases it was firsst checked that the string is long enough.

Zbyszek


More information about the systemd-devel mailing list