Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reader crashes form xlsx files with auto filter (drop down) in title #817

Open
ivantextmagic opened this issue Sep 12, 2024 · 0 comments
Open

Comments

@ivantextmagic
Copy link
Contributor

ivantextmagic commented Sep 12, 2024

xlsx/lib.go:705 +0x3c\npanic({0x104c83b00?, 0x140000ccbd0?})\n\t/usr/local/go/src/runtime/panic.go:770 +0x124\ngithub.com/tealeg/xlsx/v3.readSheetFromFile({{0x1400030e280, 0x1f}, {0x1051249a8, 0x1}, {0x140006105b8, 0x4}, {0x0, 0x0}}, 0x140000e03f0, 0x1400049c010?, ...)\n\t/xlsx/lib.go:738 +0x5b4\nxlsx/v3.readSheetsFromZipFile.func2()\n\t/xlsx/lib.go:803

file attached below
past-r.xlsx

UPD
this place has issue
/xlsx/lib.go:736

if worksheet.AutoFilter != nil {
	autoFilterBounds := strings.Split(worksheet.AutoFilter.Ref, ":")
	sheet.AutoFilter = &AutoFilter{autoFilterBounds[0], autoFilterBounds[1]}
}

autoFilterBounds[1] does not exist

@ivantextmagic ivantextmagic changed the title reader crashes form xlsx files with drop down list in title reader crashes form xlsx files with auto filter (drop down) in title Sep 12, 2024
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

No branches or pull requests

1 participant