-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
raster/raster3d: Initialize Cell_head structure contents before using it in r3.in.lidar, r.in.lidar, r.in.pdal, r.in.xyz #4390
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I smell some unused values here, so probably low risk, but this is adopted from the 2D version r.in.lidar which was also used for for r.in.pdal. r.in.lidar itself is based on r.in.xyz. So, maybe worth investigating all these at the same time.
a91589a
to
e67ee8e
Compare
I see a lot of instances in raster/raster3d and other parts as well where this structure was used without initializing it. I think we should track it with low priority and clean it up. |
e67ee8e
to
921425d
Compare
If a structure is not initialized, it may contain random data. Avoid that by initializing it. Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
921425d
to
d1c2193
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
If a structure is not initialized, it may contain random data. Avoid that by initializing it.
This was found using cppcheck tool.