-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in paperdone() when called through Ghostscript #24
Comments
Thanks for this. I agree with your analysis: the line that sets I have made a corresponding change in git master. Then, I checked out and built the When I then run with libpaper git master installed instead (no need to rebuild ghostpdl), I get no error either way. (Actually, I get other errors from ASAN, but no Please can you test with current git master? |
Thanks for the quick fix! The reproducer now segfaults if When that file is present and has mm units it appears to work fine. Would you like separate bug reports for these other issues? |
Thanks very much for the testing. Separate bug reports for the other issues would be a big help. |
Looking into the problem with the user paperspecs file containing invalid content. Clearly libpaper should be more robust in this case, but the logic is a little involved. OK, I have a fix for this, and it's a bit nasty, because it involves the deprecated |
I also seem to have fixed the case where the user paperspecs file is missing. Over to you again! |
@rrthomas I can confirm everything seems to work with the latest master branch. No further regressions spotted in Guix either. Thanks! |
Thanks very much for confirming! I've released 1.2.2. |
Hi! Ghostscript crashes with libpaper 1.2.1 with
free(): invalid size
(in GDB with debug symbols available I getfree: invalid pointer
instead):Reading the code, it seems as if
free_xdg_config_home
should only be set whenxdg_config_home
is allocated throughmfile_name_concat
; however my naive attempt at doing that gave a segfault instead.Steps to reproduce:
--with-libpaper
.gsc
executable. I'm using this file from thegroff
test suite like so:For reference, here is the Ghostscript code that uses libpaper.
Thoughts?
The text was updated successfully, but these errors were encountered: