Skip to content

Compilation problem Ubuntu 22.04 #3002

@whitecrixu

Description

@whitecrixu

Priority

Low

Area

  • Datapack
  • Source
  • Map
  • Other

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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: LowMinor impactStatus: Pending TestThis PR or Issue requires more testingType: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions