Skip to content

Commit 69d7b4c

Browse files
authored
Merge pull request #759 from aganm/oob
Fix array subscript [0, 0] is outside array bounds of ‘char[1]’
2 parents c09aaa5 + f384e58 commit 69d7b4c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

clib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuklear",
3-
"version": "4.12.3",
3+
"version": "4.12.4",
44
"repo": "Immediate-Mode-UI/Nuklear",
55
"description": "A small ANSI C gui toolkit",
66
"keywords": ["gl", "ui", "toolkit"],

nuklear.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4843,7 +4843,7 @@ struct nk_command_text {
48434843
unsigned short w, h;
48444844
float height;
48454845
int length;
4846-
char string[1];
4846+
char string[2];
48474847
};
48484848

48494849
enum nk_command_clipping {
@@ -30698,6 +30698,7 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
3069830698
/// - [y]: Minor version with non-breaking API and library changes
3069930699
/// - [z]: Patch version with no direct changes to the API
3070030700
///
30701+
/// - 2024/12/11 (4.12.4) - Fix array subscript [0, 0] is outside array bounds of ‘char[1]’
3070130702
/// - 2024/12/11 (4.12.3) - Fix border color for property widgets
3070230703
/// - 2024/11/20 (4.12.2) - Fix int/float type conversion warnings in `nk_roundf`
3070330704
/// - 2024/03/07 (4.12.1) - Fix bitwise operations warnings in C++20

src/CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/// - [y]: Minor version with non-breaking API and library changes
88
/// - [z]: Patch version with no direct changes to the API
99
///
10+
/// - 2024/12/11 (4.12.4) - Fix array subscript [0, 0] is outside array bounds of ‘char[1]’
1011
/// - 2024/12/11 (4.12.3) - Fix border color for property widgets
1112
/// - 2024/11/20 (4.12.2) - Fix int/float type conversion warnings in `nk_roundf`
1213
/// - 2024/03/07 (4.12.1) - Fix bitwise operations warnings in C++20

src/nuklear.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4621,7 +4621,7 @@ struct nk_command_text {
46214621
unsigned short w, h;
46224622
float height;
46234623
int length;
4624-
char string[1];
4624+
char string[2];
46254625
};
46264626

46274627
enum nk_command_clipping {

0 commit comments

Comments
 (0)