As libxml2 is upgraded to version 2.12.5, there added internal
logic that tests whether the parser would have succssfully reached at
the end of the given string when it completes parsing.
The previous sizeof(str[]) is always greater by 1 than the sizeof(str[])
as it counts the terminating '\0'. And it makes libxml2 parser see that
there are some stuffs after parsing completion, reporting parse error.
Change-Id: I86cd16cb4a6b5460249900a138a6ee8dcb652d2c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
ret = halcc_manifest_new(&g_manifest);
ASSERT_EQ(ret, 0);
- ret = halcc_parse_string(g_manifest_xml, sizeof(g_manifest_xml), g_manifest);
+ ret = halcc_parse_string(g_manifest_xml, strlen(g_manifest_xml), g_manifest);
ASSERT_EQ(ret, 0);
ret = halcc_manifest_find_hal(g_manifest, "hal.test", 4, 8, &g_hal);