[llvm] [llvm-strings] Use small buffer instead of reading whole file (PR #163073)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 01:20:12 PDT 2026


================
@@ -0,0 +1,70 @@
+## Show that strings interacting with the read-chunk boundary are reported
+## correctly. The input files are crafted assuming the native read chunk size
+## (sys::fs::DefaultReadChunkSize) of 16384 bytes.
+
+## Case 1: at least min string size appears before the boundary, unprintable
+## byte as first byte of the next chunk. The string is printed on its own,
+## with the offset of its start (0x3ff8 = 16384 - 8).
----------------
jh7370 wrote:

Is there a particular reason for using hex? Could we avoid the comment about the calculation by simply using decimal (`d`) for the radix?

https://github.com/llvm/llvm-project/pull/163073


More information about the llvm-commits mailing list