Commit 4159111e authored by Petri Hintukainen's avatar Petri Hintukainen

cs0 string length can't be < 1

parent 90aa4976
......@@ -182,6 +182,10 @@ static char *_cs0_to_utf8(const uint8_t *cs0, size_t size)
udf_error("out of memory\n");
return NULL;
if (size < 1) {
udf_error("too short cs0 string\n");
return NULL;
switch (cs0[0]) {
case 8:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment