Package: grcompiler / 5.2.1-3

Metadata

Package Version Patches format
grcompiler 5.2.1-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Prevent FetchContent_Declare with empty URL.patch | (download)

compiler/CMakeLists.txt | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix change in fetchcontent_decl behaviour in cmake 3.28

Older versions used to handle an empty URL parameter by doing nothing, now it errors.

0002 Add missing WORDS_BIGENDIAN definition.patch | (download)

compiler/Generic/CMakeLists.txt | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 add missing words_bigendian definition

Fixes #45 Test failures on big endian architectures

0003 Add missing include.patch | (download)

test/GrcRegressionTest/CompareFontTables.cpp | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 add missing include

Fix "error: uint32_t was not declared in this scope"
on compiling with gcc v13.

0004 Fix risky use of sprintf.patch | (download)

preprocessor/cpp2.c | 58 29 + 29 - 0 !
1 file changed, 29 insertions(+), 29 deletions(-)

 fix risky use of sprintf

Replace sprintf with snprintf, and move overlow detection and error reporting to respond to snprintf detected truncation.

0005 Remove deprecated C std library feat.patch | (download)

compiler/Grammar/Antlr/CharScanner.hpp | 2 1 + 1 - 0 !
test/GrcRegressionTest/GrcRegressionTest.cpp | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 [patch] remove/refactor code using deprecated c++ std library
 features.

std::{binary_function,ptr_fun} were deprecated in C++14 and are no longer available after C++17, as better type deduction makes them redundant.

0006 gdlpp stack overflow line ending.patch | (download)

preprocessor/cpp6.c | 9 3 + 6 - 0 !
1 file changed, 3 insertions(+), 6 deletions(-)

 fix stack overflow in gdlpp when handling cr line endings

The \r handling code in get() uses a recursive call to get() to
peek at the next character. On files using bare \r line endings
(classic Mac), every line triggers a nested get() call, leading
to unbounded stack growth and a crash.

Replace the recursive get()/unget() with a direct buffer peek,
which correctly handles \r\n, bare \r, and \n without recursion.

0007 Build with system s LZ4.patch | (download)

compiler/CMakeLists.txt | 3 1 + 2 - 0 !
compiler/Makefile.am | 6 3 + 3 - 0 !
compiler/OutputToFont.cpp | 2 1 + 1 - 0 !
configure.ac | 1 0 + 1 - 0 !
4 files changed, 5 insertions(+), 7 deletions(-)

 build with system's lz4