Re: RFA: libiberty: silence static analyzer warning

2021-03-16 Thread Ian Lance Taylor via Gcc-patches
On Tue, Mar 16, 2021, 4:48 AM Nick Clifton via Gcc-patches < gcc-patches@gcc.gnu.org> wrote: > Hi Ian, > > One of the static analyzers we use is throwing up an error report for > one of the libiberty source files: > > Error: BUFFER_SIZE (CWE-474): > libiberty/sha1.c:261: overlapping_buffer: Th

RFA: libiberty: silence static analyzer warning

2021-03-16 Thread Nick Clifton via Gcc-patches
Hi Ian, One of the static analyzers we use is throwing up an error report for one of the libiberty source files: Error: BUFFER_SIZE (CWE-474): libiberty/sha1.c:261: overlapping_buffer: The source buffer "&ctx->buffer[16]" potentially overlaps with the destination buffer "ctx->buffer", which