Closed hassanctech closed 9 months ago
Attention: 3 lines
in your changes are missing coverage. Please review.
Comparison is base (
e1b4f92
) 75.12% compared to head (bab88f5
) 75.13%.:exclamation: Current head bab88f5 differs from pull request most recent head 5f502b7. Consider uploading reports for the commit 5f502b7 to get more accurate results
Files | Patch % | Lines |
---|---|---|
src/utils/src/Threadpool.c | 70.00% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issue #, if available:
Description of changes: In
threadpoolFree
there is a call made tostackQueueIteratorGetItem
which pass the address of a pointer, but the API expected and returns a UINT64 in this field, this will cause a crash on 32 bit platforms. For reference similar issue's have been fixed and proper usage can be found elsewhere in PIC: https://github.com/awslabs/amazon-kinesis-video-streams-pic/blob/57637ea593f4b43c509413a44d993ed08d7f2616/src/client/src/Stream.c#L2059-L2062I've modified this to follow the same pattern. The CHK for NULL was missing as well if it's null we will seg fault when we try to access
item->dataMutex
.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.