Skip to content

Commit

Permalink
Fix array subscript [0, 0] is outside array bounds of ‘char[1]’
Browse files Browse the repository at this point in the history
  • Loading branch information
aganm committed Jan 3, 2025
1 parent 7f406ee commit f384e58
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clib.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuklear",
"version": "4.12.3",
"version": "4.12.4",
"repo": "Immediate-Mode-UI/Nuklear",
"description": "A small ANSI C gui toolkit",
"keywords": ["gl", "ui", "toolkit"],
Expand Down
3 changes: 2 additions & 1 deletion nuklear.h
Original file line number Diff line number Diff line change
Expand Up @@ -4843,7 +4843,7 @@ struct nk_command_text {
unsigned short w, h;
float height;
int length;
char string[1];
char string[2];
};

enum nk_command_clipping {
Expand Down Expand Up @@ -30698,6 +30698,7 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
/// - [y]: Minor version with non-breaking API and library changes
/// - [z]: Patch version with no direct changes to the API
///
/// - 2024/12/11 (4.12.4) - Fix array subscript [0, 0] is outside array bounds of ‘char[1]’
/// - 2024/12/11 (4.12.3) - Fix border color for property widgets
/// - 2024/11/20 (4.12.2) - Fix int/float type conversion warnings in `nk_roundf`
/// - 2024/03/07 (4.12.1) - Fix bitwise operations warnings in C++20
Expand Down
1 change: 1 addition & 0 deletions src/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/// - [y]: Minor version with non-breaking API and library changes
/// - [z]: Patch version with no direct changes to the API
///
/// - 2024/12/11 (4.12.4) - Fix array subscript [0, 0] is outside array bounds of ‘char[1]’
/// - 2024/12/11 (4.12.3) - Fix border color for property widgets
/// - 2024/11/20 (4.12.2) - Fix int/float type conversion warnings in `nk_roundf`
/// - 2024/03/07 (4.12.1) - Fix bitwise operations warnings in C++20
Expand Down
2 changes: 1 addition & 1 deletion src/nuklear.h
Original file line number Diff line number Diff line change
Expand Up @@ -4621,7 +4621,7 @@ struct nk_command_text {
unsigned short w, h;
float height;
int length;
char string[1];
char string[2];
};

enum nk_command_clipping {
Expand Down

0 comments on commit f384e58

Please sign in to comment.