Follow-up Comment #29, bug #68687 (group groff):

[comment #15 comment #15:]
> As a naughty aside (to save me writing a new email or bug report) are you
> seeing this warning when you do a 'make':-

> CXX      src/libs/libgroff/libgroff_a-geometry.o
> ../src/libs/libdriver/printer.cpp: In member function ‘void
> printer::load_font(int, const char*)’:
> ../src/libs/libdriver/printer.cpp:137:23: warning: ‘void*
> __builtin_memset(void*, int, long unsigned int)’ writing between 16 and
> 25769803768 bytes into a region of size 0 overflows the destination
> [-Wstringop-overflow=]
> 137 |         font_table[i] = 0 /* nullptr */;
> |         ~~~~~~~~~~~~~~^~~
> ../src/libs/libdriver/printer.cpp:132:37: note: at offset [-8589934592, -8]
> into destination object of size [8, 17179869176] allocated by ‘operator new
> []’
> 132 |       font_table = new font *[nfonts];
> |                                     ^


> Or is it just me?

Ingo has some commentary on this sort of issue in comment 1 of bug #68812.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68687>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to