https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81117
--- Comment #1 from Daniel Fruzynski <bugzi...@poradnik-webmastera.com> --- In this case this code will lead to buffer overflows, but in general case it often may work fine. However this is still error in code, and it would be good if gcc could detect and report it.