-
Notifications
You must be signed in to change notification settings - Fork 23
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
Possible mis-reading from using "strlen" on uninitialized string. #81
Comments
The variable
The function-call on line 1032 allocates the
By my reading, the
which Valgrind is flagging. |
It looks like what you're doing is measuring the length of the array, rather than the length of the string it contains, since it was never assigned a value along this execution-path. |
The name buffer is overwritten in line 552.
Can you dump the header of the file? |
I'm not sure what file is being read here. Can you give me a print-statement and line to insert it to? |
The subroutines shown in valgrind message are called when reading a file. |
I made some changes to avoid using strlen as much as possible. |
I can't figure out how to do the |
Have you tried the following in your Dockerfile?
If that does not work, I can either send you a tar ball or create a tag for you. |
I'm testing MPAS-A with PNetCDF 1.12.3 and Valgrind is giving me messages like this:
I get ~400 of these messages and am wondering if you can patch this on the PNetCDF side.
The text was updated successfully, but these errors were encountered: