diff options
author | Tony Cook <tony@develop-help.com> | 2022-07-04 16:05:32 +1000 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2022-07-18 11:22:08 +1000 |
commit | dfcfa1fefdec1ed03fb5df860be19ea54205d546 (patch) | |
tree | 1f629292969aa4f476e9cca9eaf08c38b4b766db /pp.c | |
parent | a8b89476b094f419cd7760635158726263e84631 (diff) | |
download | perl-dfcfa1fefdec1ed03fb5df860be19ea54205d546.tar.gz |
prevent undefined behaviour in S_maybe_multideref()
The first pass that calculated the size of the required structure
started with a NULL pointer, and incremented that pointer as the space
needed for the multideref sequence was accumulated.
This pointer math (adding to a non-object pointer) is undefined
behaviour in C, even if the pointer is not de-referenced.
Changed to use an integer index instead.
Diffstat (limited to 'pp.c')
0 files changed, 0 insertions, 0 deletions