EIPStackGroup / EIPStackGroup/OpENer

Potential NULL Pointer Dereference in OpENer (cipcommon.c)

Open
#531 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
857
Forks
314
Avg merge
18d 2h
Merged PRs (30d)
1

Description

## Description
While fuzz testing the OpENer CIP protocol implementation, I encountered a runtime error caused by a NULL pointer being passed to a function that requires a non-null second argument.

![Image](https://github.com/user-attachments/assets/45a8c3c5-f770-4bc5-83e1-2a6ee8cdf849)

## Details
File: source/src/cip/cipcommon.c
Line: 661
Error (via AddressSanitizer):
runtime error: null pointer passed as argument 2, which is declared to never be null

This issue can lead to undefined behavior and potentially crash the application when processing malformed input. It was discovered using fuzz testing,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.