mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-12-01 01:41:17 -06:00
Update gh-pages
This commit is contained in:
@@ -88,6 +88,10 @@
|
||||
February 22, 2024
|
||||
</time>
|
||||
|
||||
<time datetime="2024-03-04">
|
||||
(last modified: March 4, 2024)
|
||||
</time>
|
||||
|
||||
</dd>
|
||||
|
||||
<dt id="package">Package</dt>
|
||||
@@ -153,6 +157,23 @@
|
||||
|
||||
<h3 id="description">Description</h3>
|
||||
<p>The latest crates.io release was in 2019. The repository has been archived by the author.</p>
|
||||
<h2>Migration</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>safemem::copy_over(slice, src_idx, dest_idx, len);</code> can be replaced with <code>slice.copy_within(src_idx..src_idx+len, dest_idx);</code> as of <code>rust 1.37.0</code>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>safemem::write_bytes(slice, byte);</code> can be replaced with <code>slice.fill(byte);</code> as of <code>rust 1.50.0</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>safemem::prepend(slice, vec);</code> can be replaced with</p>
|
||||
<pre><code class="language-rust">let old_len = vec.len();
|
||||
vec.extend_from_slice(slice);
|
||||
vec.rotate_left(old_len);
|
||||
</code></pre>
|
||||
<p>as of <code>rust 1.26.0</code></p>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
||||
|
||||
@@ -951,7 +951,7 @@ video::delete_mesh(mesh); // &lt;-- UB
|
||||
|
||||
|
||||
</p>
|
||||
</article></content></entry><entry><title>RUSTSEC-2023-0081: safemem is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0081.html</id><updated>2024-02-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0081.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0081: safemem is unmaintained"/><published>2024-02-22T12:00:00+00:00</published><summary xml:lang="en">safemem is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
||||
</article></content></entry><entry><title>RUSTSEC-2023-0081: safemem is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0081.html</id><updated>2024-03-04T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0081.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0081: safemem is unmaintained"/><published>2024-02-22T12:00:00+00:00</published><summary xml:lang="en">safemem is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
||||
|
||||
<span class="floating-menu">
|
||||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/safemem/RUSTSEC-2023-0081.md">History</a> ⋅
|
||||
@@ -986,6 +986,10 @@ video::delete_mesh(mesh); // &lt;-- UB
|
||||
February 22, 2024
|
||||
</time>
|
||||
|
||||
<time datetime="2024-03-04">
|
||||
(last modified: March 4, 2024)
|
||||
</time>
|
||||
|
||||
</dd>
|
||||
|
||||
<dt id="package">Package</dt>
|
||||
@@ -1051,6 +1055,23 @@ video::delete_mesh(mesh); // &lt;-- UB
|
||||
|
||||
<h3 id="description">Description</h3>
|
||||
<p>The latest crates.io release was in 2019. The repository has been archived by the author.</p>
|
||||
<h2>Migration</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>safemem::copy_over(slice, src_idx, dest_idx, len);</code> can be replaced with <code>slice.copy_within(src_idx..src_idx+len, dest_idx);</code> as of <code>rust 1.37.0</code>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>safemem::write_bytes(slice, byte);</code> can be replaced with <code>slice.fill(byte);</code> as of <code>rust 1.50.0</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>safemem::prepend(slice, vec);</code> can be replaced with</p>
|
||||
<pre><code class="language-rust">let old_len = vec.len();
|
||||
vec.extend_from_slice(slice);
|
||||
vec.rotate_left(old_len);
|
||||
</code></pre>
|
||||
<p>as of <code>rust 1.26.0</code></p>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user