Overview
| Artifact ID: | 9b435e683e9cb6c597a82bebeb93617d88f8da2963b5ff323fae7c7ebf3ab48f |
|---|---|
| Ticket: | f7495f63c01ea80069198ac183e1e0cc8873dabe
valgrind reports uninitialized memory access running the test suite |
| User & Date: | sebres on 2026-03-12 10:28:26 |
Changes
- closedate changed to: "2461111.9364150115"
- closer changed to: "sebres"
- icomment:
OK, now I'm agree with Ashok - you don't understand what the issue is. If today the compiler doesn't optimize it using LDP instruction yet, it can do that later, because this will be not "broken" as you said, but fully legitimate thing - the compiler knows that the structure has a padding (basically it is 16 bytes large), so LDP instruction would be fully correct here. It is strange to push this on the fact that it is not currently in use. Maybe simply not yet? Or not in this optimization level, but within -O3 etc. Or simply by certain circumstances... But what it surely unable to know, is that we had casted it to a 12-byte block of memory (since this allocation happens in another files). This is definitively an UB. Even a known and still working UB remains UB, and it is weird to listen you decided to retain it... Not to mention you're trying to rely to some test coverage. Test coverage of the UB?! Really? This is calling bomb-planting, Jan... And saying that I get dejavu feeling.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"