Skip to content

Fix opcache.jit_buffer_size accepting negative values - #25820

Open
marc-mabe wants to merge 1 commit into
php:masterfrom
marc-mabe:fix/opcache-jit-buffer-size-negative
Open

marc-mabe wants to merge 1 commit into
php:masterfrom
marc-mabe:fix/opcache-jit-buffer-size-negative

Conversation

@marc-mabe

Copy link
Copy Markdown
Contributor

opcache.jit_buffer_size was taken as is to size the JIT buffer in shared memory. A negative value was converted to a huge size_t, which failed the assertion on the buffer size in debug builds and the shared memory allocation otherwise.

Reject negative values. Like the other JIT settings, an invalid value emits a warning naming the valid range and keeps the default.

opcache.jit_buffer_size was taken as is to size the JIT buffer in shared
memory. A negative value was converted to a huge size_t, which failed the
assertion on the buffer size in debug builds and the shared memory
allocation otherwise.

Reject negative values. Like the other JIT settings, an invalid value
emits a warning naming the valid range and keeps the default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant