Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NULL pointer dereference in link_layer.c #39

Closed
RootUp opened this issue Jan 11, 2019 · 3 comments
Closed

NULL pointer dereference in link_layer.c #39

RootUp opened this issue Jan 11, 2019 · 3 comments

Comments

@RootUp
Copy link

RootUp commented Jan 11, 2019

Hi team,

There is a NULL pointer dereference in link_layer.c

Snip link_layer.c

LinkLayer_setAddress(LinkLayer self, int address)
{
    self->address = address;
}

Stack-trace

==5832==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55eb02eed6a2 bp 0x7ffc3b237e30 sp 0x7ffc3b237e20 T0)
==5832==The signal is caused by a READ memory access.
==5832==Hint: address points to the zero page.
    #0 0x55eb02eed6a1 in LinkLayer_setAddress /home/input0/Desktop/lib60870/lib60870-C/src/iec60870/link_layer/link_layer.c:142
    #1 0x55eb02eeab30 in CS101_Master_setOwnAddress /home/input0/Desktop/lib60870/lib60870-C/src/iec60870/cs101/cs101_master.c:311
    #2 0x55eb02ec4601 in main /home/input0/Desktop/lib60870/lib60870-C/examples/cs101_master_balanced/master_example.c:127
    #3 0x7fb921c52b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #4 0x55eb02ec40f9 in _start (/home/input0/Desktop/lib60870/lib60870-C/build/examples/cs101_master_balanced/cs101_master_balanced+0x120f9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/input0/Desktop/lib60870/lib60870-C/src/iec60870/link_layer/link_layer.c:142 in LinkLayer_setAddress
==5832==ABORTING
@RootUp RootUp changed the title Memory leak in link_layer.c NULL pointer dereference in link_layer.c Jan 13, 2019
@abergmann
Copy link

CVE-2019-6137 got assigned to this issue.

@mzillgith
Copy link
Contributor

Hi,
I cannot reproduce the problem. Please provide additional information. What platform are you using? Most probably you did not pass a correct/existing serial port. Please try again with a valid serial port identifier of an existing serial port as parameter.

@mzillgith
Copy link
Contributor

There is no evidence for a problem. If you think this is wrong please feel free to reopen the issue and provide additional information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants