Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory allocation error #110

Open
marcstern opened this issue Jun 30, 2020 · 1 comment
Open

memory allocation error #110

marcstern opened this issue Jun 30, 2020 · 1 comment

Comments

@marcstern
Copy link

in jwe.c, on line 1952:

cek = cjose_get_alloc()(cek_len);
memcpy(cek, jwe->cek, cek_len);

Allocation result is not checked. We should add

if (!cek) {
   CJOSE_ERROR(err, CJOSE_ERR_NO_MEMORY);
   return NULL;
}
zandbelt added a commit to OpenIDC/cjose that referenced this issue Apr 5, 2022
@zandbelt
Copy link
Contributor

zandbelt commented Apr 5, 2022

this is now part of the maintenance fork here:
https://github.com/OpenIDC/cjose/tree/version-0.6.2.x

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

No branches or pull requests

2 participants