]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Fix segfault on conflict resolution when using bindings
authorniner <nine@detonation.org>
Tue, 8 Feb 2022 17:10:54 +0000 (18:10 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 4 Mar 2022 10:48:22 +0000 (11:48 +0100)
commitdfafc7135acc0e21caf6e2394cf3f156d8b37ed9
tree93301fd4fb19eb5ab33f84243500dd46afdcbfab
parent7aa16444df460f058d449b7ce8d4cf388f9cc6ac
Fix segfault on conflict resolution when using bindings

Solutionelement objects were created with a wrong solutionid (i.e. the
solution element id was used for the solutionid field). This led to invalid
array indexes when trying to read the extraflags which then escalated
into a segfault. Fix by setting solutionid correctly in the Solutionelement
constructor.
bindings/solv.i