Closed JoshuaMoelans closed 1 month ago
As part of an investigation into unsafe functions (https://github.com/getsentry/sentry-native/issues/1012) a slight mismatch between buffer size and copy amount was found for a call to memcpy.
memcpy
This PR fixes this by making the copied amount match the to-copy parameter's size.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 81.76%. Comparing base (f0d2a66) to head (ab6ab1d). Report is 1 commits behind head on master.
f0d2a66
ab6ab1d
As part of an investigation into unsafe functions (https://github.com/getsentry/sentry-native/issues/1012) a slight mismatch between buffer size and copy amount was found for a call to
memcpy
.This PR fixes this by making the copied amount match the to-copy parameter's size.
skip-changelog