[libbluray-devel] Fix handling of empty CS0 strings
Petri Hintukainen
git at videolan.org
Sun Jun 25 12:59:17 CEST 2017
libudfread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Sun Jun 25 13:42:26 2017 +0300| [793eac90c11587b1e28742032d147cdbec07cd60] | committer: Petri Hintukainen
Fix handling of empty CS0 strings
> http://git.videolan.org/gitweb.cgi/libudfread.git/?a=commit;h=793eac90c11587b1e28742032d147cdbec07cd60
---
src/udfread.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/udfread.c b/src/udfread.c
index 2ce87ab..9313734 100644
--- a/src/udfread.c
+++ b/src/udfread.c
@@ -179,8 +179,8 @@ static char *_cs0_to_utf8(const uint8_t *cs0, size_t size)
uint8_t *out;
if (size < 1) {
- udf_error("too short cs0 string\n");
- return NULL;
+ /* empty string */
+ return calloc(1, 1);
}
out = (uint8_t *)malloc(size);
More information about the libbluray-devel
mailing list