]> sourceware.org Git - newlib-cygwin.git/commit
riscv: fix integer wraparound in memcpy
authorPkmX via Newlib <newlib@sourceware.org>
Fri, 24 Jul 2020 11:07:45 +0000 (19:07 +0800)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 27 Jul 2020 08:14:34 +0000 (10:14 +0200)
commit123b8065237a3fb644528d3e95216ade336334bd
tree45fa660896664f4669339956a7fb626e8666946e
parent0947efb859110d0bbe4b6f1ddc9a762613e662a8
riscv: fix integer wraparound in memcpy

This patch fixes a bug in RISC-V's memcpy implementation where an
integer wraparound occurs when src + size < 8 * sizeof(long), causing
the word-sized copy loop to be incorrectly entered.

Signed-off-by: Chih-Mao Chen <cmchen@andestech.com>
newlib/libc/machine/riscv/memcpy.c
This page took 0.040775 seconds and 5 git commands to generate.