Isn&#x27;t it in practice a &quot;this code wouldn&#x27;t exist in the first place&quot; situation? (I mean in context of Rust and many others) Either you&#x27;d have to go into unsafe{} block, of the buffer would simply be a Vec&lt;&gt;, which oom()&#x27;s on allocation issue.<p>I mean theoretically the issue still exists, because you can run allocation yourself and get back null. But without unsafe this shouldn&#x27;t be possible.