Skip to content

Invalid out of bound pointer error #131

Open
@lzaoral

Description

@lzaoral

Hi,
the following code is now in the latest commits mistakenly classified to contain an "out of bound pointer" error on line 12. This happens with following build of Symbiotic: https://copr.fedorainfracloud.org/coprs/acalabek/symbiotic/build/1129971/

Thanks!

#include <stdlib.h>

typedef void *TItem;

int main() {
    TItem *list = malloc(sizeof(TItem));
    *list = malloc(sizeof(TItem));
    *((TItem *) *list) = NULL;

    while (list) {
        TItem *item = list;
        list = (TItem *) *list;
        free(item);
    }

    return 0;
}

EDIT: The link now points to a specific build and not to the general repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions