Skip to content

Find a runtime error: applying zero offset to null pointer whiling fuzzing the Redis  #7319

@WLLS253

Description

@WLLS253

SOURCE:
c->db = &server.db[id];

NOTE:
server.db is NULL

STACK:
db.c:393:14: runtime error: applying zero offset to null pointer
#0 0x753ad6 in selectDb /root/ljie_workspace/Redis/build_asan/src/db.c:393:14
#1 0x890376 in createClient /root/ljie_workspace/Redis/build_asan/src/networking.c:108:5
#2 0xc7c28a in moduleInitModulesSystem /root/ljie_workspace/Redis/build_asan/src/module.c:5555:37
#3 0xc77e85 in main /root/ljie_workspace/Redis/build_asan/src/server.c:4925:5
SUMMARY: UndefinedBehaviorSanitizer: nullptr-with-offset

Metadata

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