summaryrefslogtreecommitdiff
path: root/src/modules/checkers
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-08-13 22:50:51 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-08-13 22:53:38 -0700
commit34f25316966ae80059d8dcfe36103e4a986aeec5 (patch)
tree696851ac70e0692f95ba95fefb2346ceff022b11 /src/modules/checkers
parent5785b374b554094d83ec84e838daf456cf0b9448 (diff)
til_stream: always assign n_module_contexts in register
Leaving the larger n_module_contexts on reuse creates the potential for a NULL ptr dereference in places like gc which check the refcount of each countext in the set, without testing for NULL. Rather than making everything check for NULL, just shrink the count when it gets reused in a smaller case. This whole reuse thing is kind of a silly little optimization anyways, and will be revisited when cloning either happens or the sets become deprecated. For now just prevent creating situations that can crash.
Diffstat (limited to 'src/modules/checkers')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved