Skip to content

Non-standard signature on calloc #30

@woosh

Description

@woosh

TriCera gives special treatment to dynamic memory allocation functions like malloc, calloc and friends. However, currently (by design) TriCera expects calloc to take one argument whereas the standard requires two. The standard is *calloc(size_t nmemb, size_t size), and TriCera uses *calloc(size_t size). It basically acts as a zero-initialize version of malloc. This causes problems with "real-world" programs where there is not an option to adhere to the TriCera calloc interface since they are intended to be compiled with standard compilers. This makes TriCera less useful for programs where calloc is used.

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