mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-13 18:32:56 +00:00
Fix ASAN segfault in RCons.rgbParse()
This commit is contained in:
parent
258ed8193f
commit
560c59c848
@ -116,9 +116,12 @@ R_API int r_cons_rgb_parse(const char *p, ut8 *r, ut8 *g, ut8 *b, ut8 *a) {
|
||||
}
|
||||
if (*p == 0x1b) {
|
||||
p++;
|
||||
if (*p != '[') {
|
||||
p--;
|
||||
}
|
||||
}
|
||||
if (*p != '[') {
|
||||
p--;
|
||||
if (!p[0]) {
|
||||
return 0;
|
||||
}
|
||||
switch (p[1]) {
|
||||
case '1': bold = 255; p += 2; break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user