Skip to content

Crash when calling hiddbgIsHdlsVirtualDeviceAttached() #653

@cathery

Description

@cathery

Was having some trouble getting Hdls to work, I was doing everything correctly but it would always crash when calling e.g. hiddbgIsHdlsVirtualDeviceAttached().

After a bit of debugging I realized the function tries to access g_hiddbgHdlsTmem.src_addr where src_addr is NULL.
This wasn't a problem before, but the PR #601 switched from using tmemCreate to tmemCreateFromMemory to initalize g_hiddbgHdlsTmem, which seems to have thrown a wrench into things.

After I changed tmemCreateFromMemory to properly initialize t->src_addr, everything started working again.

tmem.c(52):

-    t->src_addr = NULL;
+    t->src_addr = buf;

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