Files
musrfit/src
suter_aandClaude Opus 4.8 7f7a7b6d6a libCuba: guard memcpy in SobolIni against negative length
GCC's -Wstringop-overflow flagged the memcpy in SobolIni() with a bound
of (size_t)(-4): on the (in practice unreachable) path where the Sobol
generator polynomial 'powers' is 0, the bit-count loop leaves inibits at
its initial -1, so inibits*sizeof underflows. The generator-polynomial
table always has a non-zero first column, so this never happens at run
time, but the compiler cannot prove it.

Guard the copy with 'if (inibits > 0)', which silences the false-positive
warning and hardens the edge case without changing behaviour for valid
input.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-23 09:33:25 +02:00
..
2026-02-13 13:59:49 +01:00
2026-02-13 13:59:49 +01:00
2026-02-13 13:59:49 +01:00
2026-04-21 10:17:33 +02:00
2026-02-13 13:59:49 +01:00
2026-02-13 13:59:49 +01:00
2026-02-13 13:59:49 +01:00
2026-02-13 13:59:49 +01:00
2026-02-13 13:59:49 +01:00