You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering that watchdog is a pub mod, OwnedDescriptor is a pub struct and atomic is a pub field, I assume that users can directly manipulate this field. This potential situation could result in self.instruction_pointer being a null pointer, and directly dereferencing it might trigger undefined behavior (UB).
To reproduce
crate a OwnedDescriptor struct.
set OwnedDescriptor::atomic to a null pointer.
call confirm method.
System info
I think any platform can reproduce this bug.
The text was updated successfully, but these errors were encountered:
Describe the bug
Considering that
watchdog
is a pub mod,OwnedDescriptor
is a pub struct andatomic
is a pub field, I assume that users can directly manipulate this field. This potential situation could result in self.instruction_pointer being a null pointer, and directly dereferencing it might trigger undefined behavior (UB).To reproduce
System info
I think any platform can reproduce this bug.
The text was updated successfully, but these errors were encountered: