Skip to content

debian sid compile warnings #760

@osevan

Description

@osevan

n function 'UnpackWPG2Raster',
inlined from 'ReadWPGImage' at coders/wpg.c:1514:25:
coders/wpg.c:679:32: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
679 | SampleBuffer[i]=(unsigned char) ReadBlobByte(image);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
coders/wpg.c: In function 'ReadWPGImage':
coders/wpg.c:586:5: note: at offset 8 into destination object 'SampleBuffer' of size 8
586 | SampleBuffer[] = { 0, 0, 0, 0, 0, 0, 0, 0 };
| ^~~~~~~~~~~~
CC coders/MagickCore_libMagickCore_7_Q16HDRI_la-xc.l

gcc version 15.2.0 (Debian 15.2.0-8)
debian sid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions