Skip to content

Initialize the default policy target - #700

Open
Sovtouch wants to merge 1 commit into
USBGuard:mainfrom
Sovtouch:main
Open

Initialize the default policy target#700
Sovtouch wants to merge 1 commit into
USBGuard:mainfrom
Sovtouch:main

Conversation

@Sovtouch

@Sovtouch Sovtouch commented Sep 9, 2026

Copy link
Copy Markdown

The Policy constructor leaves _defaultTarget uninitialized. Calling getDefaultTarget() before setDefaultTarget() reads an indeterminate value.

Initialize _defaultTarget to Rule::Target::Block in the constructor to ensure a defined default policy.

The Policy constructor leaves _defaultTarget uninitialized. Calling
getDefaultTarget() before setDefaultTarget() reads an indeterminate
value.

Initialize _defaultTarget to Rule::Target::Block in the constructor
to ensure a defined default policy.

Signed-off-by: Timofei Fedotov <sovtouch@altlinux.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant