---
title: "Enabling QR codes in Internet Explorer, or a story of a cross-platform memory disclosure"
description: "A shared bug in PostScript font engines let a Charstring program read uninitialized memory."
url: "https://swe.quest/articles/enabling-qr-codes-in-internet-explorer-or-a-story-of-a-cross-platform-memory-9e0e377c9a716769"
canonical: "https://googleprojectzero.blogspot.com/2015/09/enabling-qr-codes-in-internet-explorer.html"
source: "Google Project Zero"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 23
tags: ["vulnerability-research","browsers","memory-safety"]
---

# Enabling QR codes in Internet Explorer, or a story of a cross-platform memory disclosure

A post on [Google Project Zero](https://swe.quest/sources/project-zero.md), 23 min read, Deep dive. Original: [https://googleprojectzero.blogspot.com/2015/09/enabling-qr-codes-in-internet-explorer.html](https://googleprojectzero.blogspot.com/2015/09/enabling-qr-codes-in-internet-explorer.html)

## Summary

A shared bug in PostScript font engines let a Charstring program read uninitialized memory. Executing "get" on a transient array entry that was never written with "put" copied leftover heap or kernel pool bytes onto the operand stack. The flaw affected ATMFD.DLL in the Windows kernel, Adobe Reader, DirectWrite, WPF and Oracle Java (CVE-2015-0089, -3049, -1670, -2619). An exploit font renders each of the 1024 leaked bits of the 32-entry transient array as 64x64 squares in a glyph. Internet Explorer then reads them back through HTML5 canvas getImageData, yielding a remote memory disclosure useful for defeating ASLR. Chrome and Firefox were protected because the OpenType Sanitiser bans the get/put instructions.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Memory safety](https://swe.quest/tags/memory-safety.md) (Security)

## Prerequisites

- OpenType/CFF font format
- PostScript Charstrings
- ASLR and exploit mitigations ([easy posts on Vulnerability research](https://swe.quest/tags/vulnerability-research.md?difficulty=easy))
- heap allocation basics

## Keywords

CVE-2015-0089, ATMFD.DLL, DirectWrite, Internet Explorer, Type 2 Charstring, OpenType Sanitiser, Adobe Reader, fonttools

## Related posts

- [How Cloudflare WAF helps protect against Java4Shell (CVE-2026-114938)](https://swe.quest/articles/how-cloudflare-waf-helps-protect-against-java4shell-cve-2026-114938-001767259b988fdd.md): Cloudflare · 2026-11-18 · Medium · 9 min read · Vulnerability research, Memory safety, Java & JVM, Application security
  Java4Shell (CVE-2026-114938, CVSS 9.2) is a memory-corruption bug in OpenJDK's AVX-512 Base64 decoder intrinsic.
- [Java4Shell (CVE-2026-114938): how to find every vulnerable JDK across your repos and servers](https://swe.quest/articles/java4shell-cve-2026-114938-how-to-find-every-vulnerable-jdk-across-your-repos-a48611445ce49ec3.md): Sourcegraph · 2026-11-18 · Medium · 8 min read · Vulnerability research, Java & JVM, Incidents & postmortems, Supply chain security
  Java4Shell (CVE-2026-114938) is a CVSS 9.2 heap overflow in HotSpot's AVX-512 VBMI Base64 decoding intrinsic.
- [Using Hermes’s Quicksort to run Doom: A tale of JavaScript exploitation](https://swe.quest/articles/using-hermes-s-quicksort-to-run-doom-a-tale-of-javascript-exploitation-218717db846741cf.md): Meta Engineering · 2022-07-20 · Hard · 12 min read · Vulnerability research, Runtimes & VMs, JavaScript, Memory safety, C & C++
  A fuzzer-found bug in Hermes's stable Quicksort let a comparator callback grow the array during Array.prototype.sort, so the fixed-size index vector was read out of bounds.
- [Intent to Ship: JPEG XL](https://swe.quest/articles/intent-to-ship-jpeg-xl-8daff64ea64e35d6.md): Mozilla Hacks · 2026-08-24 · Easy · 3 min read · Browsers, Web performance, Rust, Memory safety
  Firefox intends to ship JPEG XL support, built on jxl-rs, a Rust decoder written by Google Research in place of the earlier 100,000-line multithreaded C++ library to reduce attack surface.
- [A 0-click exploit chain for the Pixel 10: When a Door Closes, a Window Opens](https://swe.quest/articles/a-0-click-exploit-chain-for-the-pixel-10-when-a-door-closes-a-window-opens-0c88e2681240c6b5.md): Google Project Zero · 2026-05-13 · Hard · 5 min read · Vulnerability research, Mobile, Linux, Memory safety
  Project Zero ported its Pixel 9 zero-click chain to the Pixel 10 by re-offsetting the Dolby UDC exploit (CVE-2025-54957), overwriting dap\_cpdp\_init instead of \_\_stack\_chk\_fail because RET PAC replaced stack protectors.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
