Alexandre Julliard pushed to branch master at wine / wine
Commits: c1a73086 by Yuxuan Shui at 2025-11-04T21:43:11+01:00 include: Shut the compiler up about PDNS_RECORD array bounds.
- - - - - a9edbf49 by Yuxuan Shui at 2025-11-04T21:50:04+01:00 include: Don't evaluate format arguments to ok() unless we need them.
Across the codebase there are several test cases where the arguments to ok() is not safe to evaluate unless the test case fails.
For example:
ok(i == ARRAY_SIZE(array), "i is too small: %d\n", array[i]);
Only when the test fails (i.e. i < ARRAY_SIZE(array)), is array[i] safe to evaluate.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58320
- - - - -
3 changed files:
- dlls/ntdll/tests/string.c - include/windns.h - include/wine/test.h
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/94e0e8bce096ec02a6f59d47a29b0f...