Skip to content

Zero memory upon allocation in bibtex. #493

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

Merged
merged 1 commit into from
Nov 11, 2019

Conversation

jneem
Copy link
Contributor

@jneem jneem commented Oct 31, 2019

This fixes an issue I'm having with memory corruption when calling bibtex multiple times. I have some sample code demonstrating the problem in https://github.com/jneem/tectonic-bibtex-test. Before this patch, running that code reliably produces valgrind warnings (and occasionally crashes). After this patch, it doesn't.

@codecov
Copy link

codecov bot commented Oct 31, 2019

Codecov Report

Merging #493 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #493   +/-   ##
======================================
  Coverage    45.5%   45.5%           
======================================
  Files         137     137           
  Lines       59924   59924           
======================================
  Hits        27268   27268           
  Misses      32656   32656
Impacted Files Coverage Δ
tectonic/bibtex.c 44.05% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed2f275...aef8fcd. Read the comment docs.

@pkgw
Copy link
Collaborator

pkgw commented Nov 11, 2019

Thanks very much!

@pkgw pkgw merged commit 4c945b1 into tectonic-typesetting:master Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants