Skip to content

fix buffer overflow error found with Celestron focuser#2252

Merged
knro merged 1 commit into
indilib:masterfrom
wgauvin:master
Jul 2, 2025
Merged

fix buffer overflow error found with Celestron focuser#2252
knro merged 1 commit into
indilib:masterfrom
wgauvin:master

Conversation

@wgauvin

@wgauvin wgauvin commented Jul 1, 2025

Copy link
Copy Markdown
Contributor

After getting back in to astrophotography I found that my Celestron focuser wasn't working on Linux, both on x86_64 and aarch64. I could see that there was a buffer overflow error detected and traced it down to this 1 line of code. This looks like the issue raised in INDI Forum - driver indi celestron sct . The issue doesn't appear on macOS but definitely on my two different Arch (x86_64 is plain old ArchLinux, ODROID N2+ is Manjaro) based systems

I believe the compilers have been optimising away the size of the rxbuf and then resulted in the buffer oveflow.

I've tested this change locally and see that it has resolved the buffer overflow. I can now connect to the focuser and use it.

@knro knro merged commit 83030d4 into indilib:master Jul 2, 2025
11 checks passed
@knro

knro commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

Thank you!

@wgauvin

wgauvin commented Jul 2, 2025

Copy link
Copy Markdown
Contributor Author

@knro - turns out the changes works for x86_64 but for my Manjaro aarch64 it still is an issue. I'll try to hack around over the next few days to find what the issue is.

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