You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by GitBox <gi...@apache.org> on 2021/08/29 19:19:41 UTC
[GitHub] [celix] pnoltes commented on issue #289: Possible NULL pointer dereference in the method manifestParser_parseExportHeader??
pnoltes commented on issue #289:
URL: https://github.com/apache/celix/issues/289#issuecomment-907854438
Theoretically `clauses` can be null if the underlining call to `linkedList_create` fails.
This would mean the malloc in the linkedList_create should fail at:
https://github.com/apache/celix/blob/0729c4dfaa6b45f436e41f13ebe71960c746d109/libs/utils/src/linked_list.c#L35
Celix has the approach not to check malloc, because in practices malloc calls will always return a value (pointer to mem or virtual pointer) and if memory becomes an issue the oom killer will kill the process.
https://linux-mm.org/OOM_Killer
So in short, no this cannot happen.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org