Skip to content

netgen: fix UB in Archive::operator&#233

Open
qbisi wants to merge 1 commit intoNGSolve:masterfrom
qbisi:gccassert
Open

netgen: fix UB in Archive::operator&#233
qbisi wants to merge 1 commit intoNGSolve:masterfrom
qbisi:gccassert

Conversation

@qbisi
Copy link

@qbisi qbisi commented Jan 25, 2026

Hi, this pr aims to fix the undefined behavior in ngcore::archive::operator& when size==0.
The bug was discovered in Nixpkgs when doing test on aarch64-darwin.

You can reproduce this bug compiling with "-D_GLIBCXX_ASSERTIONS".

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant