Skip to content

Undefined behavior: left shift of 168 by 24 places in endianconv.c:101 #532

Description

@Fuyulai-Hub

Environment

ubuntu:20.04

Description:

Crash detected during fuzzing of OpENer protocol implementation: ASan or UBSan reports left shift overflow (168 << 24) in endianconv.c:101

Log

/root/shared/test/tool_build/OpENer/source/src/enet_encap/endianconv.c:101:76: runtime error: left shift of 255 by 24 places cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /root/shared/test/tool_build/OpENer/source/src/enet_encap/endianconv.c:101:76 in

Image

Fuzzing Test Case

Here is a link to the test cases. Please copy the content from inside it and save it as an XML file so that you can use it for testing.

ethernet.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions