<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Allocator on bitfriends' blog</title><link>https://b17fr13nds.github.io/tags/allocator/</link><description>Recent content in Allocator on bitfriends' blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 01 Mar 2026 23:49:32 +0700</lastBuildDate><atom:link href="https://b17fr13nds.github.io/tags/allocator/index.xml" rel="self" type="application/rss+xml"/><item><title>snalloc - Lake CTF 2025</title><link>https://b17fr13nds.github.io/posts/lake_snalloc/</link><pubDate>Sun, 01 Mar 2026 23:49:32 +0700</pubDate><guid>https://b17fr13nds.github.io/posts/lake_snalloc/</guid><description>&lt;h2 id="overview"&gt;
 Overview
 &lt;a class="heading-link" href="#overview"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;This was an heap challenge with a custom allocator implementation.
The main program basically let you allocate, edit and free chunks using either the custom allocator or the malloc allocator.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="vulnerability"&gt;
 Vulnerability
 &lt;a class="heading-link" href="#vulnerability"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;h3 id="snalloc-internals"&gt;
 Snalloc Internals
 &lt;a class="heading-link" href="#snalloc-internals"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;In the snallloc implementation, glibc malloc is still used as the &amp;ldquo;buddy&amp;rdquo; allocator. It is exclusively used to request blocks of memory that are multiple of &lt;code&gt;PAGESIZE&lt;/code&gt; in size.&lt;/p&gt;</description></item></channel></rss>