mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 00:41:03 +01:00
![]() The features_struct.size variable is used to hold a buffer size and it is also passed in as the size parameter to read(). It should be a size_t instead of an int. A new helper function, features_buffer_remaining(), is created to handle the two places where the remaining bytes in the features buffer are calculated. This patch also changes the size parameter of load_features_dir() to a size_t to match the same parameter of load_features_file() as well as the features_struct.size change described above. Two casts were needed when comparing signed types to unsigned types. These casts are safe because the signed value is checked for "< 0" immediately before the casts. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com> |
||
---|---|---|
.. | ||
doc | ||
include | ||
m4 | ||
src | ||
swig | ||
testsuite | ||
AUTHORS | ||
autogen.sh | ||
ChangeLog | ||
configure.ac | ||
COPYING.LGPL | ||
INSTALL | ||
Makefile.am | ||
NEWS | ||
README |
What little documentation exists is in src/aalogparse.h. Please file bugs using https://bugs.launchpad.net/apparmor/+filebug