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

Properly zeroing json objects obtained from functions #150

Open
clauderobi opened this issue Mar 6, 2024 · 0 comments
Open

Properly zeroing json objects obtained from functions #150

clauderobi opened this issue Mar 6, 2024 · 0 comments

Comments

@clauderobi
Copy link

JSON object returned by functions are using jansson at the low level. This library uses malloc and free but offer the ability to override them when memory cleansing is necessary (to clean sensitive data).

Jose itself uses a rather simple zero function to clean some of the memory and then calls free. This is true even for objects originally allocated by jansson (probably indirectly). This prevents to use custom functions with jansson.

It is possible to update JOSE to use the proper way provided by jansson to handle memory cleansing?

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

1 participant