<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div style="">
<blockquote dir="auto">
<p>If there is code which relied on the behavior of always initializing the output, we may be adding new memory safety issues.</p>
</blockquote>
<p dir="auto">All calls to <code>_gnutls_set_datum</code> and <code>_gnutls_set_strdatum</code> now check their return value and fail out on error. I also manually skimmed through the places where we call one of those functions. LGTM to me.</p>
<p dir="auto"><code>warn_unused_result</code> immediately warns us if we introduce an unchecked call in the future.</p>
<p dir="auto"><code>nonnull((1))</code> triggers an error on clang's build-scan if the first argument could be NULL.</p>
<p dir="auto"><code>_gnutls_set_strdatum</code> also allows <code>data == NULL</code> as long as the <code>data_size</code> argument is 0.</p>
<p dir="auto">So I would say, we are as save as we can be.</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/merge_requests/1002#note_175346099">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/b15291b441a7f6a460093773fc9de8fa/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.com/gnutls/gnutls/merge_requests/1002#note_175346099"}}</script>
</p>
</div>
</body>
</html>