aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2024-03-04 22:12:22 -0500
committerPaul Moore <paul@paul-moore.com>2024-03-26 16:42:09 -0400
commit42c773238037c90b3302bf37a57ae3b5c3f6004a (patch)
treea1c6d8f2408adb036f1b78d627452b3dd56a0285 /lib/string_helpers.c
parente6b5ebca41dda07b76b244462995502d9f6eb10b (diff)
selinux: improve error checking in sel_write_load()
Move our existing input sanity checking to the top of sel_write_load() and add a check to ensure the buffer size is non-zero. Move a local variable initialization from the declaration to before it is used. Minor style adjustments. Reported-by: Sam Sun <samsun1006219@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions