Skip to content

heap-buffer-overflow reported by AddressSanitizer #628

@Prasann1506

Description

@Prasann1506

==18237==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xe677d000 at pc 0xee6e5ce8 bp 0xf0a3ec48 sp 0xf0a3ec3c
READ of size 1 at 0xe677d000 thread T11 (DefSch0300)
#0 0xee6e5ce7 in lyxml_parse_mem /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/xml.c:1130
#1 0xee5f9b45 in yin_read_module /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/parser_yin.c:7112
#2 0xee53cbdd in lys_read_import /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/parser.c:424
#3 0xee54905e in lyp_search_file /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/parser.c:661
#4 0xee52a95e in ly_ctx_load_sub_module /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/context.c:659
#5 0xee54b3d3 in lyp_check_import /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/parser.c:3070
#6 0xee5e7547 in fill_yin_import /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/parser_yin.c:3578
#7 0xee5e7547 in read_sub_module /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/parser_yin.c:6760
#8 0xee5f91f6 in yin_read_module_ /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/parser_yin.c:7020
#9 0xee5f9b5a in yin_read_module /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/parser_yin.c:7118
#10 0xee6dc42c in lys_parse_mem_ /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/tree_schema.c:961
#11 0xee6dc873 in lys_parse_fd /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/tree_schema.c:1115
#12 0xee6dcc76 in lys_parse_path /usr1/code/code_R18C10_VRPV8/code/current/VRP/opensource/libyang/yang/tree_schema.c:1052

Code snippet:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions