Fixes buffer overflow in roxml_lookup_nsdef.
Fixes buffer overflow in roxml_lookup_nsdef.

roxml_lookup_nsdef do not check the length of the namespace string.
This way a buffer overflow in a local string variable was possible.

This change avoids the stack overflow and returns NULL when the string
was truncated by MAX_NAME_LEN.

Signed-off-by: Gerhard Gappmeier <aec866f05d14a0041c30e77a92d196c09bb1d842@ascolab.com>

mahmudur85/libroxml,mahmudur85/libroxml,gergap/libroxml,gergap/libroxml,sartura/libroxml,gergap/libroxml,gergap/libroxml,sartura/libroxml,sartura/libroxml,mahmudur85/libroxml,mahmudur85/libroxml,mahmudur85/libroxml,sartura/libroxml,gergap/libroxml,sartura/libroxml