[apparmor] [PATCH] Fix transition table resize padding
John Johansen
john.johansen at canonical.com
Mon Jul 12 22:16:41 BST 2010
This is the sser space fix for launchpad.net/busgs/599450
It changes the table resizing so that there is always sufficient
high entries in the table, preventing bounds violations from
occurring.
Previously the resize allocation was always based on the character
set range for a state, which could be more or less than actually
required, and packing would waste some space when over allocation
was done.
As a result this patch in general results in slightly smaller
transition tables even though it enforcing the minimum required
padding to avoid bounds violations.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transition-table-padding2.patch
Type: text/x-diff
Size: 777 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/apparmor/attachments/20100712/9c20de24/attachment.patch
More information about the AppArmor
mailing list