This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ARM] Fixes for arm str* routines


Patches checked in. Thanks.

-- Jeff J.

Richard Earnshaw wrote:
Another couple of bugs have been found in the string routines that I
posted recently.  The first, fixed by Mark Mitchell, concerns the
thumb-2 compilation of strlen (strings shorter than 4 bytes could
sometimes be reported as being longer than 4 bytes).

The second is a case of an unfortunate (l)user.  Anyone unfortunate
enough to have a string that contained 0x80 would find that the routines
treated that as an end-of-string marker, leading to short strings.

Fixed thusly:

2009-03-09 Mark Mitchell <mark@codesourcery.com>

* libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.

2009-03-12 Richard Earnshaw <rearnsha@arm.com>

	* libc/machine/arm/strlen.c (strlen): Correctly detect
	end-of-string.
	* libc/machine/arm/strcpy.c (strcpy): Likewise.
	* libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]