forked from marcthurley/sharpSAT
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
At this exact line, the uip_clauses_.back() can become an empty vector:
Line 323 in c079168
| if (uip_clauses_.back().front() == TOS_decLit().neg()) { |
Calling .front() on an empty vector is an undefined behavior.
How to reproduce:
- Checkout the
bug-conflict-resolution-invalid-accessbranch. - Build as usual.
- Run the report-test:
ctest -R bugreport:vector_empty_front_called. I got the following error:
Start 2: bugreport:vector_empty_front_called
1/1 Test #2: bugreport:vector_empty_front_called ...***Exception: SegFault 0.12 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.20 sec
The following tests FAILED:
2 - bugreport:vector_empty_front_called (SEGFAULT)
Errors while running CTest
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels