Skip to content
Permalink
Browse files Browse the repository at this point in the history
Protected against garbage in the CapRTL encoder
  • Loading branch information
dov committed Mar 25, 2022
1 parent cffa304 commit f22593b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/fribidi-char-sets-cap-rtl.c
Expand Up @@ -232,7 +232,12 @@ fribidi_cap_rtl_to_unicode (
}
}
else
us[j++] = caprtl_to_unicode[(int) s[i]];
{
if ((int)s[i] < 0)
us[j++] = '?';
else
us[j++] = caprtl_to_unicode[(int) s[i]];
}
}

return j;
Expand Down

0 comments on commit f22593b

Please sign in to comment.