opentibiabr / canary

Canary Server 13.x for OpenTibia community.
https://docs.opentibiabr.com/
GNU General Public License v2.0
383 stars 635 forks source link

Compilation problem Ubuntu 22.04 #3002

Open whitecrixu opened 1 month ago

whitecrixu commented 1 month ago

Priority

Low

Area

What happened?

In function ‘__copy_or_move’,
    inlined from ‘operator()’ at /usr/include/c++/12/bits/ranges_algobase.h:304:38,
    inlined from ‘operator()’ at /usr/include/c++/12/bits/ranges_algobase.h:501:27,
    inlined from ‘operator()’ at /usr/include/c++/12/bits/ranges_algobase.h:495:7,
    inlined from ‘decodeLength.constprop’ at /home/crixu/canary/src/security/rsa.cpp:172:22:
/usr/include/c++/12/bits/ranges_algobase.h:275:27: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  275 |                 *__result = *__first;
      |                           ^
/usr/include/c++/12/array: In function ‘decodeLength.constprop’:
/usr/include/c++/12/array:115:56: note: at offset 4 into destination object ‘_M_elems’ of size 4
  115 |       typename _AT_Type::_Type                         _M_elems;
      |                                                        ^
In function ‘__copy_or_move’,
    inlined from ‘operator()’ at /usr/include/c++/12/bits/ranges_algobase.h:304:38,
    inlined from ‘operator()’ at /usr/include/c++/12/bits/ranges_algobase.h:501:27,
    inlined from ‘operator()’ at /usr/include/c++/12/bits/ranges_algobase.h:495:7,
    inlined from ‘decodeLength.constprop’ at /home/crixu/canary/src/security/rsa.cpp:172:22:
/usr/include/c++/12/bits/ranges_algobase.h:275:27: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  275 |                 *__result = *__first;
      |                           ^
/usr/include/c++/12/array: In function ‘decodeLength.constprop’:
/usr/include/c++/12/array:115:56: note: at offset 5 into destination object ‘_M_elems’ of size 4
  115 |       typename _AT_Type::_Type                         _M_elems;

What OS are you seeing the problem on?

Linux

Code of Conduct

Chapeleiiro commented 4 weeks ago

up