Skip to content

Commit 9763b73

Browse files
committed
fix segfault
1 parent 61ac01a commit 9763b73

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ To install or update LODA, please follow the [installation instructions](https:/
22

33
## [Unreleased]
44

5+
## v25.7.13
6+
7+
### Bugfixes
8+
9+
* Fix segmentation fault during mining
10+
511
## v25.7.12
612

713
### Bugfixes

src/eval/range_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bool RangeGenerator::init(const Program& program, RangeMap& ranges,
3535
bool RangeGenerator::generate(const Program& program, RangeMap& ranges,
3636
Number inputUpperBound) {
3737
std::vector<RangeMap> collected;
38-
if (!collect(program, collected, inputUpperBound)) {
38+
if (!collect(program, collected, inputUpperBound) || collected.empty()) {
3939
return false;
4040
}
4141
ranges = collected.back();

0 commit comments

Comments
 (0)