Skip to content

[FIX] FeatureFinderAlgorithmPicked: crashes for charge_low > charge_high and feature:min_isotope_fit 0 - #10506

Merged
timosachsenberg merged 3 commits into
OpenMS:developfrom
okohlbacher:claude/ffap-charge-isotope-fit-20261010
Oct 11, 2026
Merged

timosachsenberg merged 3 commits into
OpenMS:developfrom
okohlbacher:claude/ffap-charge-isotope-fit-20261010

Conversation

@okohlbacher

Copy link
Copy Markdown
Contributor

isotopic_pattern:charge_low > charge_high wrapped the UInt charge count (out-of-bounds writes, SIGSEGV); feature:min_isotope_fit 0 let seeds without any isotope placement (score 0, empty pattern) through to extendMassTraces_ (SIGSEGV).
Fix: throw InvalidParameter in updateMembers_ (count now Size); abort seeds whose best pattern is empty.
Test: two new FeatureFinderAlgorithmPicked_test sections (exception expected; bound 0 must give the same 14 features as 1e-300); develop throws nothing resp. segfaults.

🤖 Generated with Claude Code

okohlbacher and others added 2 commits October 10, 2026 19:36
…igh; min_isotope_fit 0 equals a tiny positive bound

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…abort seeds with an empty isotope pattern

charge_high - charge_low + 1 was stored in a UInt and wrapped for charge_low > charge_high, so the score
arrays were written out of bounds (SIGSEGV); updateMembers_ now throws InvalidParameter and the count is a Size.
findBestIsotopeFit_ returns 0 with an empty pattern when no placement exists; with feature:min_isotope_fit 0
that seed was not aborted and extendMassTraces_ read the empty pattern (SIGSEGV).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1118fcb1-0e38-40e2-8000-66cb55748e3d

📥 Commits

Reviewing files that changed from the base of the PR and between a5720bb and 0483f4e.


📒 Files selected for processing (3)
  • CHANGELOG
  • src/openms/source/FEATUREFINDER/FeatureFinderAlgorithmPicked.cpp
  • src/tests/class_tests/openms/source/FeatureFinderAlgorithmPicked_test.cpp

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@timosachsenberg

Copy link
Copy Markdown
Contributor

FYI I ported the Biosaur2 algorithm as alternative to FF picked. It is less sophisticated but seems to work better.

@timosachsenberg

Copy link
Copy Markdown
Contributor

Lgtm

@timosachsenberg
timosachsenberg merged commit cc9272f into OpenMS:develop Oct 11, 2026
11 of 12 checks passed
okohlbacher added a commit to okohlbacher/OpenMS that referenced this pull request Nov 5, 2026
Resolves the conflicts with develop: the PR's test section is added after the
min_isotope_fit section from OpenMS#10506, and its CHANGELOG entry is kept on top of
develop's.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants