-
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed potential buffer overruns when adding too many .ini array eleme…
…nts. (#923) Co-authored-by: Steve Robb <[email protected]>
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59916eb
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.
Hi @steverobb (and @sorgelig), a colleague of mine is getting an "INI Error" since the last time he run update_all and I'm wondering if this 59916eb change affects the behaviour of the "no_merge_vidpid=0x584d474d" variable at the MiSTer.ini file, which was working before, and we think it has the right syntax. Please see the 3 attached images:
Thanks.
59916eb
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.
Hey @javier-rodas,
Yeah, it looks like I've broken it by reusing the
max
field for the array size which is used for the max string length in arrays. There is no array size field. The effect is that the validNO_MERGE_VIDPID
values range from 0 to 256.I'll get a PR in for a fix. Sorry for the disruption.
Steve
59916eb
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.
This should be reverted