Skip to content

Instantly share code, notes, and snippets.

@SongT-50
SongT-50 / minimal-test-case-report.md
Created May 7, 2026 05:16
protobuf-c PR #800 mock files (size_t->unsigned narrowing arithmetic reproducer)

protobuf-c size_t→unsigned truncation: Minimal Test Case

Created: 2026-05-02
For: Robert Edmonds (protobuf-c maintainer)
Re: GitHub PR #800 verification request

Executive Summary

This document provides a minimal test case for the size_t→unsigned truncation issue reported in PR #800. The vulnerability exists at protobuf-c.c:3244 where repeated-field element counts are truncated from size_t to unsigned during the allocation phase.