GNOME Bugzilla – Bug 747032
Fix possible crash in ostree_mutable_tree_walk()
Last modified: 2015-03-31 17:25:11 UTC
Test suite in 'master' is failing: ./test-mutable-tree /mutable-tree/metadata-checksum: OK /mutable-tree/contents-checksum: OK /mutable-tree/parent-dirs: OK /mutable-tree/walk: Segmentation fault (core dumped)
Created attachment 300601 [details] [review] Fix possible crash in ostree_mutable_tree_walk()
Review of attachment 300601 [details] [review]: The code was certainly mishandling that condition. Given that the caller provides the array and a bounds check is trivial, I agree with calling an illegal initial condition a programming error.
Merged to master: https://git.gnome.org/browse/ostree/commit/?id=d667ebe1568591bdd3c3cc23d751ffc5c0a3752c