summaryrefslogtreecommitdiff
path: root/lib/libalpm/cache.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-01-13 14:14:34 -0600
committerDan McGee <dan@archlinux.org>2008-01-13 18:42:00 -0600
commit549c2878f965e5b6cb001ff3c8c5e3122becf8e1 (patch)
tree4433139a39b18a7802e2212c8c523598b2192780 /lib/libalpm/cache.c
parent8186dc11a90dbc310acaad7ee867ee995adbd6ed (diff)
downloadpacman-549c2878f965e5b6cb001ff3c8c5e3122becf8e1.tar.xz
Disallow a NULL section in _parseconfig
If we allow _parseconfig to continue processing when section is not defined, then we have the potential to segfault during strcmp calls. This is no good. For some reason, we had existing logic that tested this case but only if it was processing and 'Include' directive. Expand the check to check for a NULL section in all cases, and print an error message if this is the case. Reported here: http://bbs.archlinux.org/viewtopic.php?id=42235 Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/cache.c')
0 files changed, 0 insertions, 0 deletions