Task #6028
open
Task #3153: tracking: scan-build warnings
c: C11 _s style buffer handling calls
Added by Victor Julien over 2 years ago.
Updated 20 days ago.
Description
C11 adds a suite of safe(r) buffer handle replacements for memset, memcpy, snprintf, etc. We should consider using these. This would require updates to many hundreds of call sites. Probably good to create our own wrappers, so we can instrument them to assist fuzzing as well.
Related issues
1 (1 open — 0 closed)
- Target version changed from 8.0.0-beta1 to 9.0.0-beta1
- Status changed from New to Assigned
- Assignee changed from OISF Dev to Philippe Antoine
Of course where it makes sense, we should also consider moving callers to rust.
I wonder if the benefits of converting to memcpy_s overcome the cost (vs rustifying)
- Priority changed from Normal to Low
Putting this low priority until discussion
I'm fine with checking if rust conversions make sense, but I'm sure not all memcpy and similar users are good candidates for immediate conversions. So it still makes sense to me to consider these new replacements for those cases.
immediate conversions
There is nothing immediate, no PR ready...
This issue makes sense but I do not think it is high priority wrt the other tickets I have for 9...
Also available in: Atom
PDF