Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: c3feabe7a309a55a52fead3a97b6ef882f33199d https://github.com/Perl/perl5/commit/c3feabe7a309a55a52fead3a97b6ef882f33199d Author: Lukas Mai <lukasmai....@gmail.com> Date: 2025-08-16 (Sat, 16 Aug 2025)
Changed paths: M gv.h M op.h M sv.h Log Message: ----------- avoid '0 + ptr' to create rvalues in macros Pointer arithmetic (including 0 + ptr) has undefined behavior on null pointers. That's why the (0 + x->field) trick to provide rvalue access to struct fields is not generally safe with pointers. Instead use no-op casts, which also produce rvalues. Should fix these ASan errors (both from GvGP): gv.c:2920:44: runtime error: applying zero offset to null pointer sv.c:3855:25: runtime error: applying zero offset to null pointer To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications