Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build latest main (-Werror-stringop-overflow=) #13467

Closed
Holzhaus opened this issue Jul 13, 2024 · 0 comments · Fixed by #13504
Closed

Cannot build latest main (-Werror-stringop-overflow=) #13467

Holzhaus opened this issue Jul 13, 2024 · 0 comments · Fixed by #13504

Comments

@Holzhaus
Copy link
Member

Bug Description

In file included from /home/jan/Projects/mixxx/src/util/samplebuffer.h:7,
                 from /home/jan/Projects/mixxx/src/engine/channels/enginedeck.h:8,
                 from /home/jan/Projects/mixxx/src/engine/channels/enginedeck.cpp:1:
In static member function ‘static void SampleUtil::clear(CSAMPLE*, SINT)’,
    inlined from ‘void EngineDeck::processStem(CSAMPLE*, int)’ at /home/jan/Projects/mixxx/src/engine/channels/enginedeck.cpp:62:22:
/home/jan/Projects/mixxx/src/util/sample.h:41:15: error: ‘void* memset(void*, int, size_t)’ specified bound between 18446744065119617024 and 18446744073709551612 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
   41 |         memset(pBuffer, 0, sizeof(*pBuffer) * numSamples);
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Version

commit 1b9ebc1

OS

Arch Linux (gcc 14.1.1 20240522)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants