From ab86ae0284469a9a941f5b196f9cc99a90305e3a Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 15 Oct 2026 08:20:37 +0800 Subject: fix(codegen): prevent NUM_TO_STR buffer overflow Size REAL buffers for the full fixed-point double range and bound writes with snprintf. Register MinGW CRT aliases for embedded execution. Co-Authored-By: Claude Fable 5.1 --- include/cps/StringConversionHandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/cps/StringConversionHandler.h') diff --git a/include/cps/StringConversionHandler.h b/include/cps/StringConversionHandler.h index 9637620..c4879aa 100644 --- a/include/cps/StringConversionHandler.h +++ b/include/cps/StringConversionHandler.h @@ -10,7 +10,7 @@ class StringConversionHandler { llvm::IRBuilder<> &Builder; llvm::Module &Module; - llvm::FunctionCallee SprintfFunc; + llvm::FunctionCallee SnprintfFunc; llvm::FunctionCallee StrtollFunc; llvm::FunctionCallee StrtodFunc; llvm::FunctionCallee MallocFunc; -- cgit v1.3.1-4-g156e