v1-0003-TODO-uint8-vs-char-confusion.patch

text/x-patch

Filename: v1-0003-TODO-uint8-vs-char-confusion.patch
Type: text/x-patch
Part: 2
Message: Re: Use pg_malloc macros in src/fe_utils

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: format-patch
Series: patch v1-0003
Subject: TODO: uint8 vs char confusion
File+
src/bin/pg_verifybackup/pg_verifybackup.c 1 1
From 2056a1f6c1422e0f2a56b4a832ddf92ecf8256ff Mon Sep 17 00:00:00 2001
From: Andreas Karlsson <andreas@proxel.se>
Date: Fri, 27 Feb 2026 02:11:30 +0100
Subject: [PATCH v1 3/3] TODO: uint8 vs char confusion

---
 src/bin/pg_verifybackup/pg_verifybackup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/pg_verifybackup/pg_verifybackup.c b/src/bin/pg_verifybackup/pg_verifybackup.c
index cbc9447384f..562e9212e30 100644
--- a/src/bin/pg_verifybackup/pg_verifybackup.c
+++ b/src/bin/pg_verifybackup/pg_verifybackup.c
@@ -1007,7 +1007,7 @@ verify_tar_file(verifier_context *context, char *relpath, char *fullpath,
 		return;
 	}
 
-	buffer = pg_malloc(READ_CHUNK_SIZE * sizeof(uint8));
+	buffer = pg_malloc_array(char, READ_CHUNK_SIZE);
 
 	/* Perform the reads */
 	while ((rc = read(fd, buffer, READ_CHUNK_SIZE)) > 0)
-- 
2.47.3