summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2022-07-04 16:05:32 +1000
committerTony Cook <tony@develop-help.com>2022-07-18 11:22:08 +1000
commitdfcfa1fefdec1ed03fb5df860be19ea54205d546 (patch)
tree1f629292969aa4f476e9cca9eaf08c38b4b766db /pp.c
parenta8b89476b094f419cd7760635158726263e84631 (diff)
downloadperl-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