<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Gotcha on rustbites</title><link>https://www.rustbites.com/tags/gotcha/</link><description>Recent content in Gotcha on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 01 Jun 2026 16:45:28 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/gotcha/index.xml" rel="self" type="application/rss+xml"/><item><title>175. PathBuf::push — When an Absolute Argument Wipes Your Base Path</title><link>https://www.rustbites.com/posts/bite-175/</link><pubDate>Mon, 01 Jun 2026 09:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-175/</guid><description>&lt;p&gt;&lt;code&gt;base.push(user_input)&lt;/code&gt; looks like string concatenation for paths. It isn&amp;rsquo;t — if &lt;code&gt;user_input&lt;/code&gt; is absolute, the original &lt;code&gt;base&lt;/code&gt; is gone.&lt;/p&gt;</description></item></channel></rss>