get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2220002/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2220002,
    "url": "http://patchwork.ozlabs.org/api/patches/2220002/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20260405181821.475180-2-marocketbd@gmail.com/",
    "project": {
        "id": 41,
        "url": "http://patchwork.ozlabs.org/api/projects/41/?format=api",
        "name": "GNU C Library",
        "link_name": "glibc",
        "list_id": "libc-alpha.sourceware.org",
        "list_email": "libc-alpha@sourceware.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260405181821.475180-2-marocketbd@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-05T18:18:20",
    "name": "[v4,1/2] stdio-common: Add regression test [BZ #34008]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d67bb65acef2d0f51d39bb9a4a49033a1c26bfd8",
    "submitter": {
        "id": 92898,
        "url": "http://patchwork.ozlabs.org/api/people/92898/?format=api",
        "name": "Rocket Ma",
        "email": "marocketbd@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/20260405181821.475180-2-marocketbd@gmail.com/mbox/",
    "series": [
        {
            "id": 498801,
            "url": "http://patchwork.ozlabs.org/api/series/498801/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=498801",
            "date": "2026-04-05T18:18:19",
            "name": "stdio-common: Fix heap overflow in scanf %mc pattern [BZ #34008]",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/498801/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220002/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220002/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "libc-alpha@sourceware.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "libc-alpha@sourceware.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=Z86/8kuT;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=Z86/8kuT",
            "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "sourceware.org; spf=pass smtp.mailfrom=gmail.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=2607:f8b0:4864:20::122a"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fpghX2BcJz1yFs\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 04:19:08 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 5E29A4BA23DA\n\tfor <incoming@patchwork.ozlabs.org>; Sun,  5 Apr 2026 18:19:06 +0000 (GMT)",
            "from mail-dl1-x122a.google.com (mail-dl1-x122a.google.com\n [IPv6:2607:f8b0:4864:20::122a])\n by sourceware.org (Postfix) with ESMTPS id 20C824BA2E2B\n for <libc-alpha@sourceware.org>; Sun,  5 Apr 2026 18:18:46 +0000 (GMT)",
            "by mail-dl1-x122a.google.com with SMTP id\n a92af1059eb24-1271195d2a7so7038090c88.0\n for <libc-alpha@sourceware.org>; Sun, 05 Apr 2026 11:18:46 -0700 (PDT)",
            "from localhost ([23.94.240.252]) by smtp.gmail.com with UTF8SMTPSA\n id\n a92af1059eb24-12bedd4e4e3sm9024602c88.1.2026.04.05.11.18.43\n for <libc-alpha@sourceware.org>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 05 Apr 2026 11:18:44 -0700 (PDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 5E29A4BA23DA",
            "OpenDKIM Filter v2.11.0 sourceware.org 20C824BA2E2B"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 20C824BA2E2B",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 20C824BA2E2B",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775413126; cv=none;\n b=pBLzz44Iwb7yUnCKb0DYv6ISM+LTc6z/L5qQiOKbf1FacsyVQDNG9rm9BfCQwG6yglRkNncOVhMV7CeucK9HVreGsw4sa5YRFftzqrZm4oEKTUWtppHQmRnGDNyznHe357AiG/wXfRRWXyAAKeJteXxWJe0bM9NfLyFS5SBM39M=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775413126; c=relaxed/simple;\n bh=7FJFhepoiPBivZuwP/kRUvQLJ7NJQ7wCz7wPK+w7mpI=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=G5daC8KS7u8GL2epEaLDFL6rRrFzlNVExhJhjXXAaWbE7Dv7PBZynVolIoW10l9B8rm4CWDKyYhYG/UAKOS5SqSkPbypqC/ZLD3g1VTiZhGvZM7b6NSJ9+JwoNfqTCNPxT1DTfyFzG4S7Md7Dun/nxxIi/hZQfEirf0paNO6mHA=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775413125; x=1776017925; darn=sourceware.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=eKQK+jywK+7hnhxsj6eUl5mHm+bcg/W7AEC35LmGlpg=;\n b=Z86/8kuTCKyGQTGgywhnZnQzXSqMsEio2c4dUr6Ea3ZuCOOYn59ZnxdBnEed90ew97\n nhiZN0zF85e4CBVHifVnHlTcjy/cWK8RxD94BiEtIKCEnLh/QSIlrH5kKai/vB4zfH7s\n X8mTVhBP4Ln+kkchLZS67xmgbQxrp3HdJxzWfh6Np0QRpJD7uS0N62HeF66zgWjGdrkJ\n X/d/mLsra1pdhvR2liTvdKGnIJclaqISqJblP0o7a6hyVeP6J2Knr2MU6Y4c6AsLVlZI\n cXbR0UbRuxefWkdbHX2ov+4NP0e2nN/lESc+Cx1ep322Zhy5ma1e3x0hLPvMy6tgEKs7\n Omig==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775413125; x=1776017925;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=eKQK+jywK+7hnhxsj6eUl5mHm+bcg/W7AEC35LmGlpg=;\n b=AycInptCj/bFDIyghLxBT5of72lwul8XQgu+Xf7gnL966hHY2XuGLTOCpYp7rtC00e\n 9Z29/dUuPLzDShPSq3j7W4B+mUatNZ4nAz1Ebi7lNwgpYO8LE1HU9WI1kMQGa+GRJvBG\n ZFIU0nWTh3pxq8vgRqKW5OA4szOLo3/ZBUFT8GNmyVkyIvXusRElaRcBRplCGIjMlmSO\n JxyCYd9KlgYaCCQdmRSbjX1dxf/IlDWoy5NtFmC1lSxQdX2Fyq2bT45qEEnqFm68qy3k\n 4kEgp9nbc2q8x+clRFGrPQYO2VQp5JFZgcWEdSmw2gVUcZ4nld/o6eAR77aIvnc4KPCf\n CrdA==",
        "X-Gm-Message-State": "AOJu0YzHbi3DhSfuzYt7lUpYEgaiDdqyeoH1pn3zKkmjjfjKX94OLEJF\n RqvMO3iJ4r8hU59v1sw4OYum/FWjeeLgrhTXNC9rzZ+OyqhOhUQc+JgqoxNeN8f+",
        "X-Gm-Gg": "AeBDiesm0QCM6+QRZHhUskrjqsBrqjlIGbdKoBPpAUknahavFFWz4sbFQmPmM+M5Pme\n Y/r9+EFd2qjD3+yd7E8eOKSRZ153M5cyh8tfN+LVcbAUtABdQMzByhBdKDcgWtBWB7EAmuA9WLl\n Sbfb0TdxEItfnXS55qMR8FLH1WzNrmIkjrC9uHsqPOwjQHS6cN2kQknmAQyPDqus6/eUH+lmN/8\n FtFI7UUBmpxSiDGclN4pjEvQdSyXLeB4ID+PKlgeF2E1nBabjO8Wq+pyF032RYMELweW7NaBgcG\n RDSTYhnjVh+do+RQs4P3y/EB8FQvP122ck7QpvrR2Ug3anSZG16tU+TB5TaFS4aQUwakTYMKy2A\n VT4OmhZLiYutycej309wlWlNZSb/KjsbFmfK7g5v8ieP8uDuLx8+NIUl1PE7fQIv1W0rJSSPgUy\n ZTx7Prd7+1JBoTckC8Vmh7LAHnIPMf/UDX/6mYtzI5sfTNPHzxl1JOTsVhEdvFC+dHG51se8EqM\n t7KbDpf",
        "X-Received": "by 2002:a05:7022:6199:b0:128:d107:da0f with SMTP id\n a92af1059eb24-12bfb6fb627mr4688678c88.10.1775413124565;\n Sun, 05 Apr 2026 11:18:44 -0700 (PDT)",
        "From": "Rocket Ma <marocketbd@gmail.com>",
        "To": "libc-alpha@sourceware.org",
        "Subject": "[PATCH v4 1/2] stdio-common: Add regression test [BZ #34008]",
        "Date": "Sun,  5 Apr 2026 11:18:20 -0700",
        "Message-ID": "<20260405181821.475180-2-marocketbd@gmail.com>",
        "X-Mailer": "git-send-email 2.47.3",
        "In-Reply-To": "<20260405181821.475180-1-marocketbd@gmail.com>",
        "References": "<20260405181821.475180-1-marocketbd@gmail.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "libc-alpha@sourceware.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Libc-alpha mailing list <libc-alpha.sourceware.org>",
        "List-Unsubscribe": "<https://sourceware.org/mailman/options/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe>",
        "List-Archive": "<https://sourceware.org/pipermail/libc-alpha/>",
        "List-Post": "<mailto:libc-alpha@sourceware.org>",
        "List-Help": "<mailto:libc-alpha-request@sourceware.org?subject=help>",
        "List-Subscribe": "<https://sourceware.org/mailman/listinfo/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=subscribe>",
        "Errors-To": "libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org"
    },
    "content": "* stdio-common/tst-vfscanf-bz34008.c: This separate regression test is\nadded to test if BZ #34008 is fixed.\n\nSigned-off-by: Rocket Ma <marocketbd@gmail.com>\n---\n stdio-common/Makefile              |  4 +++\n stdio-common/tst-vfscanf-bz34008.c | 48 ++++++++++++++++++++++++++++++\n 2 files changed, 52 insertions(+)\n create mode 100644 stdio-common/tst-vfscanf-bz34008.c",
    "diff": "diff --git a/stdio-common/Makefile b/stdio-common/Makefile\nindex 210944837e..0c0085e607 100644\n--- a/stdio-common/Makefile\n+++ b/stdio-common/Makefile\n@@ -349,6 +349,7 @@ tests := \\\n   tst-vfprintf-user-type \\\n   tst-vfprintf-width-i18n \\\n   tst-vfprintf-width-prec-alloc \\\n+  tst-vfscanf-bz34008 \\\n   tst-wc-printf \\\n   tstdiomisc \\\n   tstgetln \\\n@@ -564,6 +565,9 @@ tst-printf-bz18872-ENV = MALLOC_TRACE=$(objpfx)tst-printf-bz18872.mtrace \\\n tst-vfprintf-width-prec-ENV = \\\n   MALLOC_TRACE=$(objpfx)tst-vfprintf-width-prec.mtrace \\\n   LD_PRELOAD=$(common-objpfx)/malloc/libc_malloc_debug.so\n+tst-vfscanf-bz34008-ENV = \\\n+  MALLOC_CHECK_=3 \\\n+  LD_PRELOAD=$(common-objpfx)/malloc/libc_malloc_debug.so\n tst-printf-bz25691-ENV = \\\n   MALLOC_TRACE=$(objpfx)tst-printf-bz25691.mtrace \\\n   LD_PRELOAD=$(common-objpfx)/malloc/libc_malloc_debug.so\ndiff --git a/stdio-common/tst-vfscanf-bz34008.c b/stdio-common/tst-vfscanf-bz34008.c\nnew file mode 100644\nindex 0000000000..af746821fb\n--- /dev/null\n+++ b/stdio-common/tst-vfscanf-bz34008.c\n@@ -0,0 +1,48 @@\n+/* Regression test for vfscanf %Nmc out-of-bound write (BZ #34008)\n+   Copyright (C) 2012-2026 Free Software Foundation, Inc.\n+   This file is part of the GNU C Library.\n+\n+   The GNU C Library is free software; you can redistribute it and/or\n+   modify it under the terms of the GNU Lesser General Public\n+   License as published by the Free Software Foundation; either\n+   version 2.1 of the License, or (at your option) any later version.\n+\n+   The GNU C Library is distributed in the hope that it will be useful,\n+   but WITHOUT ANY WARRANTY; without even the implied warranty of\n+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+   Lesser General Public License for more details.\n+\n+   You should have received a copy of the GNU Lesser General Public\n+   License along with the GNU C Library; if not, see\n+   <https://www.gnu.org/licenses/>.  */\n+\n+#include \"malloc/mcheck.h\"\n+#include <stddef.h>\n+#include <stdio.h>\n+#include <string.h>\n+#include <wchar.h>\n+#include <stdlib.h>\n+#include <malloc.h>\n+#include <support/check.h>\n+\n+#define WIDTH 0x410\n+#define SCANFSTR \"%1040mc\"\n+static int\n+do_test (void)\n+{\n+  mcheck_pedantic (NULL);\n+  char *input = malloc (WIDTH + 1);\n+  TEST_VERIFY (input != NULL);\n+  memset (input, 'A', WIDTH);\n+  input[WIDTH] = '\\0';\n+\n+  char *buf = NULL;\n+  TEST_VERIFY (sscanf (input, SCANFSTR, &buf) != -1);\n+  TEST_VERIFY (buf != NULL);\n+\n+  free (buf);\n+  free (input);\n+  return 0;\n+}\n+\n+#include <support/test-driver.c>\n",
    "prefixes": [
        "v4",
        "1/2"
    ]
}