Fix unitialized value warning, nullptr access
ClosedPublic

Authored by bruns on Mar 31 2018, 3:37 AM.

Details

Summary

getVarint32Ptr may return a nullptr (in case of an error), and also will
not set the value (size resp. n).

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>

Test Plan

make

Diff Detail

Repository
R293 Baloo
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Mar 31 2018, 3:37 AM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptMar 31 2018, 3:37 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
bruns requested review of this revision.Mar 31 2018, 3:37 AM
bruns added a reviewer: Baloo.Mar 31 2018, 5:07 AM
michaelh accepted this revision.Mar 31 2018, 7:50 AM
This revision is now accepted and ready to land.Mar 31 2018, 7:50 AM
This revision was automatically updated to reflect the committed changes.