Overview
| Artifact ID: | be27c75d09d4aaa798e0772efffb94bd883b08d6ad61f45c630eaa93ec08cec3 |
|---|---|
| Ticket: | f7495f63c01ea80069198ac183e1e0cc8873dabe
valgrind reports uninitialized memory access running the test suite |
| User & Date: | apnadkarni on 2026-03-13 03:17:42 |
Changes
- closedate changed to: "2461112.6372923497"
- closer changed to: "apnadkarni"
- icomment:
Jan, Sorry, I'm reverting your revert. - This is undefined behaviour as per the standard. Just the fact that the `key` pointer lands up pointing to a memory block that is smaller than `sizeof(*key)` should really suffice for this point but Sergey has articulated in detail. - Your experiment forcing a 64-bit crash actually further proves the point. And the excuse that interp-34.7 catches this case is completely meaningless. It catches one specific case using a specific compiler on a specific platform, there are other cases, code generators and platforms that it might not. Even if that were not so, what is the guarantee that we test with gcc 14 and at some user compiles with a newer gcc release? Claiming UB is ok because of test suite would catch failures is not logical. - As I said before, a single additional integer operation will make absolutely no difference to performance in *any* application. The fact that the code path is almost never ever exercised makes this "optimization" completely meaningless. So what makes you so adamant about this? Finally, even if you don't change your opinion, please consider that in case of disagreements, it's reasonable that the majority opinion hold. With apologies, /Ashok
- login: "apnadkarni"
- mimetype: "text/x-markdown"