xzvno
06/21/2021, 1:39 AMgetChange
(osquery/core/watcher.cpp), change
is uninitialized if tryTo
throws an exception. And change.footprint
is assigned to state.initial_footprint
. Does it matter?seph
06/21/2021, 2:07 PMchange
is declared and it’s various members worked with. Are you referring to change.footprint
specifically?tryTo
. Is that a method that can raise? I think it’s not supposed to raise. and instead return an error that takeOr
works withxzvno
06/22/2021, 12:25 AMtryTo
. It may be at
or takeOr
. Anyway, I mean if something is thrown, do we need to initialize change
in the catch block?seph
06/23/2021, 1:05 PMchange
is declared outside it.
So if the members of that stuct are intialized as 0 when declared it seems fine. If they're undef it'd be bad. But I can't tell which is which.xzvno
06/24/2021, 12:22 AMseph
06/24/2021, 12:23 AMxzvno
06/24/2021, 12:45 AMchange
when it is declared (or in the catch block). Should I ask it here or open an issue?seph
06/24/2021, 2:56 AMxzvno
06/24/2021, 3:27 AMseph
06/24/2021, 4:10 AMxzvno
06/24/2021, 7:15 AM