-
Notifications
You must be signed in to change notification settings - Fork 462
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
SEGV in function ControlObjectClient_setOrigin() #442
Comments
mzillgith
added a commit
that referenced
this issue
Feb 24, 2023
mzillgith
added a commit
that referenced
this issue
Feb 24, 2023
@mzillgith The fix looks fine to me. Since the bug was fixed, this issue should be closed. |
arnout
pushed a commit
to buildroot/buildroot
that referenced
this issue
Sep 8, 2023
Segmentation fault in example code can be exploited. BUILD_EXAMPLES is disabled for all cmake projects. See mz-automation/libiec61850#442 Signed-off-by: Daniel Lang <dalang@gmx.at> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
arnout
pushed a commit
to buildroot/buildroot
that referenced
this issue
Sep 14, 2023
Segmentation fault in example code can be exploited. BUILD_EXAMPLES is disabled for all cmake projects. See mz-automation/libiec61850#442 Signed-off-by: Daniel Lang <dalang@gmx.at> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit b25f1cb) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
arnout
pushed a commit
to buildroot/buildroot
that referenced
this issue
Sep 14, 2023
Segmentation fault in example code can be exploited. BUILD_EXAMPLES is disabled for all cmake projects. See mz-automation/libiec61850#442 Signed-off-by: Daniel Lang <dalang@gmx.at> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit b25f1cb) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
arnout
pushed a commit
to buildroot/buildroot
that referenced
this issue
Sep 14, 2023
Segmentation fault in example code can be exploited. BUILD_EXAMPLES is disabled for all cmake projects. See mz-automation/libiec61850#442 Signed-off-by: Daniel Lang <dalang@gmx.at> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit b25f1cb) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
citral23
pushed a commit
to citral23/buildroot
that referenced
this issue
Sep 18, 2023
Segmentation fault in example code can be exploited. BUILD_EXAMPLES is disabled for all cmake projects. See mz-automation/libiec61850#442 Signed-off-by: Daniel Lang <dalang@gmx.at> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit b25f1cb) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, team
There is a SEGV in function
ControlObjectClient_setOrigin
insrc/iec61850/client/client_control.c:328
when called from libiec61850/examples/iec61850_client_example_control/client_example_control.c:60.Steps to reproduce:
I used gcc 9.4 and AddressSanitizer(
export CFLAGS="-g -fsanitize=address" CXXFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address"
beforemake examples
) to build libiec61850.First, I run the
server_example_simple
in directorylibiec61850/examples/server_example_simple
by commandsudo ./server_example_simple
so that the server is set up.Then I tested
client_example_control
in directorylibiec61850/examples/iec61850_client_example_control
by commandsudo ./client_example_control
.But I got
SEGV
in functionControlObjectClient_setOrigin
insrc/iec61850/client/client_control.c:328
.ASAN Output:
The text was updated successfully, but these errors were encountered: