WSL2-Linux-Kernel/arch/blackfin/lib
Steven Miao 5ff6197f82 Blackfin: strncpy: fix handling of zero lengths
The jump to 4f will cause the NUL padding loop to run at least one time,
so if string length is zero just jump to the end.  Otherwise we wrongly
write one NUL byte when size==0.

Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-03 11:05:36 -04:00
..
Makefile Blackfin: convert to generic checksum code 2009-12-15 00:13:32 -05:00
ashldi3.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
ashrdi3.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
divsi3.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
gcclib.h Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
ins.S Fix common misspellings 2011-03-31 11:26:23 -03:00
lshrdi3.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
memchr.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
memcmp.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
memcpy.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
memmove.S Fix common misspellings 2011-03-31 11:26:23 -03:00
memset.S Blackfin: optimize strncpy a bit 2010-05-22 14:19:11 -04:00
modsi3.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
muldi3.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
outs.S Blackfin: outs[lwb]: make sure count is greater than 0 2011-03-04 01:26:55 -05:00
smulsi3_highpart.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
strcmp.S Blackfin: move string functions to normal lib/ assembly 2010-05-22 14:19:09 -04:00
strcpy.S Blackfin: move string functions to normal lib/ assembly 2010-05-22 14:19:09 -04:00
strncmp.S Blackfin: move string functions to normal lib/ assembly 2010-05-22 14:19:09 -04:00
strncpy.S Blackfin: strncpy: fix handling of zero lengths 2011-06-03 11:05:36 -04:00
udivsi3.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
umodsi3.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
umulsi3_highpart.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00