Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

ckd_calloc_[234]d() out-of-bounds read #74

Open
guidovranken opened this issue Mar 21, 2020 · 1 comment
Open

ckd_calloc_[234]d() out-of-bounds read #74

guidovranken opened this issue Mar 21, 2020 · 1 comment

Comments

@guidovranken
Copy link

The following leads to an out-of-bounds read in ckd_free_2d (can be observed with valgrind of AddressSanitizer). It happens whenever the first argument to ckd_calloc_2d is 0. This also applies to the 3d and 4d counterparts.

#include <sphinxbase/ckd_alloc.h>

int main(void)
{
    void* p = ckd_calloc_2d(0, 2, 3);
    ckd_free_2d(p);
    return 0;
}
@guidovranken
Copy link
Author

If you acknowledge and fix this, could you please credit 'ForAllSecure Mayhem'?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant