]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix recently-introduced profile parsing bugs 1348/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 21 May 2024 23:10:50 +0000 (19:10 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 28 May 2024 20:34:49 +0000 (16:34 -0400)
commite85e30234f0e0e250a00e5f3468bb7311a7d3fb2
treeb496022ec9d9587169dba90fec1599c675e7fff1
parentc3dccd348e3c557cbc34b3be0cbc13aff1bfa144
Fix recently-introduced profile parsing bugs

When parsing a "}", do not ascend to the parent node if we are still
within a discarded section after decrementing group_level, as we did
not descend into a child node at the beginning of the subsection.
(Discovered by OSS-Fuzz.)

Also adjust the level check to take into account the shifted meaning
of state->group_level, so that we properly reject a "}" within a
top-level section.

Both bugs were introduced in commit
f951625e6bd3ff44f1056958b56e35a1a043e362.
src/util/profile/final6.ini
src/util/profile/prof_parse.c