Skip to content

Commit

Permalink
Fix GH-16812: UAF on readline_info() after readline_write_history() c…
Browse files Browse the repository at this point in the history
…all.
  • Loading branch information
devnexen committed Nov 15, 2024
1 parent 4767c06 commit f16a9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/readline/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ PHP_FUNCTION(readline_info)
if (rl_line_buffer) {
free(rl_line_buffer);
}
rl_line_buffer = tmp;
oldstr = rl_line_buffer = tmp;
}
#endif
#if !defined(PHP_WIN32)
Expand Down

0 comments on commit f16a9c7

Please sign in to comment.