Skip to content

Conversation

Davidtober
Copy link

The Array index is initialized to all zeros but code using this function relies on 1-based indexing. This leads to crashes later in the execution if the default value is not overwritten.

@espdev
Copy link
Owner

espdev commented Nov 1, 2023

Hello @Davidtober,

Interesting. Could you provide a test for this case?

@Davidtober
Copy link
Author

Hi @espdev,

Yes certainly. I've just pushed a commit adding a test to recreate the issue.

@espdev
Copy link
Owner

espdev commented Nov 2, 2023

Thank you @Davidtober

Looks good to me.

@espdev espdev merged commit d5fcfdf into espdev:master Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants