GeezerVison is showing github.com — Fix invalid range panics in IFS aggregate functions by EpicHigh · Pull Request #2456 · qax-os/excelize
Conversation
EpicHigh
commented
Oct 17, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Prevent panics when a matched row or column falls outside a result range or a later criteria range. SUMIFS, AVERAGEIFS, MAXIFS, MINIFS, and COUNTIFS now return #VALUE! for these invalid accesses. The panic can stop an application that evaluates formulas from an untrusted workbook without recovering from panics.
Related to #2453. The other error-propagation issues in that report are outside this change.
Validation on Go 1.27.1, macOS arm64:
- Added 49 range regression cases covering scalar inputs, too few rows or columns, arrays, and uneven array rows.
- Reproduced the
MAXIFS and MINIFS result-range panics and the SUMIFS later-criteria panic before the update. The new cases and existing formula tests pass after it.
gofmt -s, go vet ./..., and go build -v . passed.
go test -timeout 60m -race ./... with atomic coverage passed: 99.8% overall and 100% for the five functions and their shared matcher.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
EpicHigh
changed the title
Fix AVERAGEIFS panic on an invalid average range
Fix invalid range panics in IFS aggregate functions
Oct 17, 2026
… (strings should not end with punctuation or newlines)
codecov
Bot
commented
Oct 17, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.72%. Comparing base (402e3bd) to head (b227cda).
⚠️ Report is 2 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #2456 +/- ##
=======================================
Coverage 99.72% 99.72%
=======================================
Files 32 32
Lines 32554 32588 +34
=======================================
+ Hits 32464 32498 +34
Misses 88 88
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.
🚀 New features to boost your workflow:
- ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your pull request. I've made some changes based on your code branch.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
EpicHigh reacted with thumbs up emoji
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
xuri
xuri approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size/L
Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
No open projects
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|