[syslinux] missing strlcpy fix (which klibc has)

Ferenc Wagner wferi at niif.hu
Mon Jul 21 08:11:16 PDT 2014


Ady <ady-sf at hotmail.com> writes:

>> The current strlcpy code in the Syslinux tree copies one byte too much.
>> Basically, it misses something like the following klibc patch:
>> http://git.kernel.org/cgit/libs/klibc/klibc.git/commit/klibc/strlcpy.c?id=4644bd92e21c7fd9a48dd8dfd0c4f8ef772843f0
>> 
>> As the current klibc may carries lots of other relevant fixes as well, I
>> wonder whether there is a way to import a newer klibc, or what's the
>> best way to handle this problem anyway.
>  
> Is this some kind of bug report?

Yes.  The current strlcpy() implementation in Syslinux is broken,
missing the fix in the above commit.  Likewise strlcat(), and some other
(mostly string-) functions at least.  Some of the bugs could be fixed by
incorporating the respective files from the current klibc source, but
I'm not sure how hpa wishes to manage his parallel code bases, so I
decided to ask first.
-- 
Regards,
Feri.


More information about the Syslinux mailing list