From b0e68bbcaad49e57ae0cfea6d620822a0c0f3d1f Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 22 Dec 2013 19:07:28 +0100 Subject: [PATCH] Fixed a memory access error introduced with rev 1099 --- libisofs/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libisofs/util.c b/libisofs/util.c index 118f209..a855c02 100644 --- a/libisofs/util.c +++ b/libisofs/util.c @@ -1254,7 +1254,8 @@ uint16_t *iso_j_file_id(const uint16_t *src, int flag) pos++; } } - iso_handle_split_utf16(dest + (pos - 1)); + if (pos > 0) + iso_handle_split_utf16(dest + (pos - 1)); if ((flag & 1) && lnext <= 0) goto is_done;