Skip to content

calloc() calls #34

@hepoun

Description

@hepoun

Hi,

correct me, if I'm wrong, but I found bunch of calls to calloc(), that seem to me to have bad order of arguments. The interface is void *calloc(size_t num, size_t size), but here is an example: tdo_buffer_start = calloc(sizeof(uint8_t), scan_size_bytes);.

At some locations there it is even combination of corrent and in-correct calls, like here.

Another locations can be easily found, when searching for calloc(sizeof(.

It is possible, it is just that I didn't look into the code deeper and more thoroughly, I indeed didn't, but...

EDIT: It seems this problem was fixed upstream about half year ago, so maybe it is somewhere in the queue already.

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