platform_bionic/libc/arch-arm/cortex-a15/bionic
Christopher Ferris fdfcfce7c6 Fix over read in strcpy/stpcpy/strcat.
This bug will happen when these circumstances are met:

- Destination address & 0x7 == 1, strlen of src is 11, 12, 13.
- Destination address & 0x7 == 2, strlen of src is 10, 11, 12.
- Destination address & 0x7 == 3, strlen of src is 9, 10, 11.
- Destination address & 0x7 == 4, strlen of src is 8, 9, 10.

In these cases, the dest alignment code does a ldr which reads 4 bytes,
and it will read past the end of the source. In most cases, this is
probably benign, but if this crosses into a new page it could cause a
crash.

Fix the labels in the cortex-a9 strcat.

Modify the overread test to vary the dst alignment to expost this bug.
Also, shrink the strcat/strlcat overread cases since the dst alignment
variation increases the runtime too much.

Bug: 24345899
Change-Id: Ib34a559bfcebd89861985b29cae6c1e47b5b5855
2015-09-24 14:17:36 -07:00
..
__strcat_chk.S Add optimized cortex-a7/cortex-a53 memset/memcpy. 2015-08-17 13:02:03 -07:00
__strcat_chk_common.S Add optimized cortex-a7/cortex-a53 memset/memcpy. 2015-08-17 13:02:03 -07:00
__strcpy_chk.S Add optimized cortex-a7/cortex-a53 memset/memcpy. 2015-08-17 13:02:03 -07:00
__strcpy_chk_common.S Add optimized cortex-a7/cortex-a53 memset/memcpy. 2015-08-17 13:02:03 -07:00
memcpy.S Add optimized cortex-a7/cortex-a53 memset/memcpy. 2015-08-17 13:02:03 -07:00
memcpy_base.S Add optimized cortex-a7/cortex-a53 memset/memcpy. 2015-08-17 13:02:03 -07:00
memcpy_common.S Add optimized cortex-a7/cortex-a53 memset/memcpy. 2015-08-17 13:02:03 -07:00
memset.S Cleanup arm assembly. 2014-09-29 15:53:10 -07:00
stpcpy.S Add stpcpy assembler version. 2014-09-30 19:23:26 -07:00
strcat.S Fix over read in strcpy/stpcpy/strcat. 2015-09-24 14:17:36 -07:00
strcmp.S Cleanup arm assembly. 2014-09-29 15:53:10 -07:00
strcpy.S Add stpcpy assembler version. 2014-09-30 19:23:26 -07:00
string_copy.S Fix over read in strcpy/stpcpy/strcat. 2015-09-24 14:17:36 -07:00
strlen.S Make all labels local. 2015-07-23 12:12:55 -07:00