libosmium icon indicating copy to clipboard operation
libosmium copied to clipboard

Find solution for stringop-overread warning

Open joto opened this issue 4 months ago • 0 comments

Compiling any program based on libosmium, you'll get stringop-overread warnings from GCC because it thinks we are reading data from beyond the end of a buffer. That is not the case but GCC doesn't know that. This is due to the way we are creating objects with placement new in an osmium::memory::Buffer one object after another without extra allocations.

joto avatar Aug 30 '25 14:08 joto