Skip to content
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

jl_errorf: null terminate buffer before printing #10112

Merged
merged 1 commit into from
Feb 7, 2015

Conversation

garrison
Copy link
Member

@garrison garrison commented Feb 7, 2015

(I noticed this issue when adding an entry to sysimg.jl that includes a file that does not exist. The resulting error message had extra characters due to a string that was not properly null terminated.)

I noticed this when adding an entry to sysimg.jl that `include`s
a file that does not exist.  The resulting error message had extra
characters due to a string that was not properly null terminated.
@garrison
Copy link
Member Author

garrison commented Feb 7, 2015

In principle the return value of each ios_ function should be checked as well. This would be easy to fix in builtins.c, but seems to be a problem in many other places as well.

JeffBezanson added a commit that referenced this pull request Feb 7, 2015
jl_errorf: null terminate buffer before printing
@JeffBezanson JeffBezanson merged commit b3a17a5 into JuliaLang:master Feb 7, 2015
@garrison garrison deleted the errorf_nullterm branch February 7, 2015 17:47
@tkelman
Copy link
Contributor

tkelman commented Feb 8, 2015

somewhat related: #9450

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.

4 participants