diff options
| author | Julian Andres Klode <jak@debian.org> | 2025-05-25 12:25:21 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2025-05-26 12:08:29 +0200 |
| commit | 822c979d5e010e24e513875b608d1f68daaeced4 (patch) | |
| tree | 1496e902554b11538685394c80c06512199bbeed /apt-pkg/solver3.h | |
| parent | 4f5b0fe1d6af3a5cce15636b9c5307438a9c2d9f (diff) | |
solver3: Handle failed assumption in Pop()
If an Assume() failed, we will have pushed the choices stack,
but not actually pushed anything to the solved stack.
This would cause a segmentation fault trying to read the referenced
entry that doesn't actually exists, namely solved[solved.size()].
Handle this by exiting early as there's nothing to do except
pop the entry back out of the array.
Diffstat (limited to 'apt-pkg/solver3.h')
0 files changed, 0 insertions, 0 deletions
