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

runtime error: index 40 out of bounds for type 'uint8_t[40]' (aka 'unsigned char[40]') #46

Open
kasper93 opened this issue Mar 9, 2024 · 0 comments

Comments

@kasper93
Copy link
Contributor

kasper93 commented Mar 9, 2024

There seem to be wrong index value used, probably should be column instead of i.

../../src/teletext.c:2564:34: runtime error: index 40 out of bounds for type 'uint8_t[40]' (aka 'unsigned char[40]')
    #0 0x7ffa45c2e895 in vbi_format_vt_page F:/dev/zvbi/build/src/../../src/teletext.c:2564:34
    #1 0x7ffa45c50867 in vbi_fetch_vt_page F:/dev/zvbi/build/src/../../src/teletext.c:2891:13
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../src/teletext.c:2564:34 in
../../src/teletext.c:2652:24: runtime error: index 890 out of bounds for type 'uint8_t[40]' (aka 'unsigned char[40]')
    #0 0x7ffa45c300e2 in vbi_format_vt_page F:/dev/zvbi/build/src/../../src/teletext.c:2652:24
    #1 0x7ffa45c50867 in vbi_fetch_vt_page F:/dev/zvbi/build/src/../../src/teletext.c:2891:13
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../src/teletext.c:2652:24 in
../../src/teletext.c:2646:24: runtime error: index 911 out of bounds for type 'uint8_t[40]' (aka 'unsigned char[40]')
    #0 0x7ffa45c2fbfb in vbi_format_vt_page F:/dev/zvbi/build/src/../../src/teletext.c:2646:24
    #1 0x7ffa45c50867 in vbi_fetch_vt_page F:/dev/zvbi/build/src/../../src/teletext.c:2891:13
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