-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doio: make do_shmio() work with args beyond I32
- Extend mpos/msize to the full size_t/STRLEN range (whatever that is on the current platform). - Fully validate the range of all incoming values, including making sure that mpos+misze does not overflow (I think you used to be able to crash perl with this before). - Assert that the optype is either OP_SHMREAD or OP_SHMWRITE (because the code blindly performs a shmwrite() if optype is not OP_SHMREAD). - Switch to Perl_croak_nocontext because why not. Fixes #22895.
- Loading branch information
Showing
1 changed file
with
61 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters