mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #52] [MERGED] Clean up some fragile uses of strncmp. #3527
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3527
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/52
Author: @sarneaud
Created: 9/1/2015
Status: ✅ Merged
Merged: 9/1/2015
Merged by: @netblue30
Base:
master← Head:strncmp📝 Commits (1)
78fd720Clean up some fragile uses of strncmp.📊 Changes
2 files changed (+5 additions, -5 deletions)
View changed files
📝
src/firejail/caps.c(+1 -1)📝
src/firejail/fs.c(+4 -4)📄 Description
In some places the code compares the first n characters of a string and
then assumes a valid string starts from the n+2th character. I didn't
find any places where this wasn't justifiable, but I think it's better
to stick to safer patterns, especially in SUID code.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.