mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
When using pdf_get_buffer() and doing a correct cleanup by calling pdf_delete()
this always resulted in a coredump (after everything was finished, so only visible in the logfile). So it seems to be neccesary to copy the contents of the result of get_buffer, to avoid this coredump.
This commit is contained in:
parent
09c7116f6e
commit
28ed45fa72
@ -2176,7 +2176,7 @@ PHP_FUNCTION(pdf_get_buffer) {
|
||||
|
||||
buffer = PDF_get_buffer(pdf, &size);
|
||||
|
||||
RETURN_STRINGL((char *)buffer, size, 0);
|
||||
RETURN_STRINGL((char *)buffer, size, 1);
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user