<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Wed, 11 Nov 2026 18:15:48 +0000</lastBuildDate>
    <item>
      <title>RUSTSEC-2018-0022 — Use of uninitialized memory in temporary</title>
      <link>https://db.gcve.eu/vuln/rustsec-2018-0022</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: temporary&lt;/p&gt;
&lt;p&gt;Uninit memory is used as a RNG seed in temporary&lt;/p&gt;
&lt;p&gt;The following function is used as a way to get entropy from the system, which does operations on and exposes uninit memory, which is UB.&lt;/p&gt;
&lt;p&gt;```rust
fn random_seed(_: &amp;amp;Path, _: &amp;amp;str) -&amp;gt; [u64; 2] {
    use std::mem::uninitialized as rand;
    unsafe { [rand::&amp;lt;u64&amp;gt;() ^ 0x12345678, rand::&amp;lt;u64&amp;gt;() ^ 0x87654321] }
}
```&lt;/p&gt;
&lt;p&gt;This has been resolved in the 0.6.4 release.&lt;/p&gt;
&lt;p&gt;The crate is not intended to be used outside of a testing environment.&lt;/p&gt;
&lt;p&gt;For a general purpose crate to create temporary directories, [`tempfile`](https://crates.io/crates/tempfile) is an alternative for this crate.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: temporary&lt;/p&gt;
&lt;p&gt;Uninit memory is used as a RNG seed in temporary&lt;/p&gt;
&lt;p&gt;The following function is used as a way to get entropy from the system, which does operations on and exposes uninit memory, which is UB.&lt;/p&gt;
&lt;p&gt;```rust
fn random_seed(_: &amp;amp;Path, _: &amp;amp;str) -&amp;gt; [u64; 2] {
    use std::mem::uninitialized as rand;
    unsafe { [rand::&amp;lt;u64&amp;gt;() ^ 0x12345678, rand::&amp;lt;u64&amp;gt;() ^ 0x87654321] }
}
```&lt;/p&gt;
&lt;p&gt;This has been resolved in the 0.6.4 release.&lt;/p&gt;
&lt;p&gt;The crate is not intended to be used outside of a testing environment.&lt;/p&gt;
&lt;p&gt;For a general purpose crate to create temporary directories, [`tempfile`](https://crates.io/crates/tempfile) is an alternative for this crate.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/rustsec-2018-0022</guid>
    </item>
  </channel>
</rss>
