Skip to content

MemorySanitizer: use-of-uninitialized-value in example.c #438

Closed
@nmoinvaz

Description

  Uninitialized value was stored to memory at
    #0 0x428223  (/home/runner/work/zlib-ng/zlib-ng/example+0x428223)
    #1 0x7f193647e60a  (/home/runner/work/zlib-ng/zlib-ng/libz-ng.so.1+0xbb60a)

  Uninitialized value was stored to memory at
    #0 0x428223  (/home/runner/work/zlib-ng/zlib-ng/example+0x428223)
    #1 0x7f19363f07bb  (/home/runner/work/zlib-ng/zlib-ng/libz-ng.so.1+0x2d7bb)
    #2 0x49eb53  (/home/runner/work/zlib-ng/zlib-ng/example+0x49eb53)
    #3 0x4a4cf0  (/home/runner/work/zlib-ng/zlib-ng/example+0x4a4cf0)
    #4 0x7f1935412b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

  Uninitialized value was created by an allocation of 'c_stream' in the stack frame of function 'test_deflate_copy'
    #0 0x49e000  (/home/runner/work/zlib-ng/zlib-ng/example+0x49e000)

==4118==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7f193647ef8a  (/home/runner/work/zlib-ng/zlib-ng/libz-ng.so.1+0xbbf8a)
    #1 0x7f193647e4d3  (/home/runner/work/zlib-ng/zlib-ng/libz-ng.so.1+0xbb4d3)
    #2 0x427eb3  (/home/runner/work/zlib-ng/zlib-ng/example+0x427eb3)
    #3 0x7f1935434614  (/lib/x86_64-linux-gnu/libc.so.6+0x43614)
    #4 0x7f19363c6082  (/home/runner/work/zlib-ng/zlib-ng/libz-ng.so.1+0x3082)

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