Closed markushi closed 1 month ago
We should also consider integrating CodeQL into CI to highlight potential issues earlier.
Tracking progress on this Notion page (+ subpages)
Investigation led to 2 minor fixes (https://github.com/getsentry/sentry-native/pull/1046 and https://github.com/getsentry/sentry-native/pull/1047). All other occurrences of 'unsafe' functions were already properly guarded, or handled static data that made their uses safe.
Description
We recently received a security report about unsafe usages. Whilst there's not always a safe alternative available (especially cross-platform) we can still have a check and ensure we have best-effort implementations for:
Detailed report:
Format String Vulnerabilities
Buffer Overflow Vulnerabilities
Buffer Overflow Danger Functions