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
PDAL allocates all RAM with invalid LAS file #3226
Comments
The file you submitted isn't a valid LAS file. Are you just asking for an error message instead of the current behavior? |
I'm asking that the library throw an error, at least if an app tries to read the variable-length records. It would also be good to add a test to check that it throws an error. I ran |
The complaint here is that a bad LAS file doesn't always throw an error. |
Addressed by #3237 |
Describe the bug
I created a LAS file with some code that wasn't working right yet and tried to open it with CloudCompare. It grabbed all the RAM it could and was killed. Because of an uninitialized variable, nVariableLength had a floating-point number in it instead of zero.
I submitted a bug report to CloudCompare, but was told that the bug is in PDAL. Daniel Girardeau-Montaut provided this code to fix the bug:
I have submitted a pull request with the corrupt file as a test case.
Trying nonzero values in nExtendedVariableLength did not result in grabbing all RAM. PDAL threw bad_alloc to CloudCompare.
System/installation information:
Please provide information on your PDAL version (
pdal --version
) and system (e.g.,uname -a
orver
).The text was updated successfully, but these errors were encountered: