Skip to content

Commit

Permalink
Fix heap buffer over-read in pal.c
Browse files Browse the repository at this point in the history
  • Loading branch information
pelijah authored Apr 21, 2024
1 parent 652591f commit ff89861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/cons/pal.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ RZ_API char *rz_cons_pal_parse(const char *str, RzColor *outcol) {
char *bgcolor;
char *attr = NULL;
char out[128];
if (!str) {
if (!str || RZ_STR_ISEMPTY(str)) {
return NULL;
}
fgcolor = strdup(str);
Expand Down

0 comments on commit ff89861

Please sign in to comment.