Commit 793eac90 authored by Petri Hintukainen's avatar Petri Hintukainen

Fix handling of empty CS0 strings

parent ebffeb3e
...@@ -179,8 +179,8 @@ static char *_cs0_to_utf8(const uint8_t *cs0, size_t size) ...@@ -179,8 +179,8 @@ static char *_cs0_to_utf8(const uint8_t *cs0, size_t size)
uint8_t *out; uint8_t *out;
if (size < 1) { if (size < 1) {
udf_error("too short cs0 string\n"); /* empty string */
return NULL; return calloc(1, 1);
} }
out = (uint8_t *)malloc(size); out = (uint8_t *)malloc(size);
......
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