diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-09-27 12:27:19 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-09-27 16:18:15 -0700 |
| commit | b1355592c141534a2fcb65165ee70885b5ca8cdb (patch) | |
| tree | 405b298dfa82c8749b6a63a5c0ddb7e28c8268c8 /meta-oe | |
| parent | d1375d37ee514b8883836ca4437e11b013fc781e (diff) | |
| download | meta-openembedded-b1355592c141534a2fcb65165ee70885b5ca8cdb.tar.gz | |
indent: upgrade 2.2.12 -> 2.2.13
Drop 0001-Fix-builds-with-recent-gettext.patch - it built fine for me without it.
Building requires full makeinfo, not only a lite version, so switched the texinfo
class to texinfo-replacement-native dependency.
Changelog:
- Fix buffer overflows and use after free bugs
- Recognize binary integer literals
- New and updated translations, thanks to our translators:
- Updated translations:
Catalan, Croatian, French, Galician, German, Greek, Hungarian,
Indonesian, Italian, Romanian, Serbian, Spanish, Turkish, Ukrainian
- New translation: Portuguese
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-extended/indent/indent/0001-Fix-a-heap-buffer-underread-in-set_buf_break.patch | 4 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/indent/indent/0001-Fix-builds-with-recent-gettext.patch | 32 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/indent/indent/0001-Makefile.am-remove-regression-dir.patch | 11 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/indent/indent/0001-Remove-dead-paren_level-code.patch | 27 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/indent/indent/CVE-2023-40305_0001.patch | 8 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/indent/indent_2.2.13.bb (renamed from meta-oe/recipes-extended/indent/indent_2.2.12.bb) | 7 |
6 files changed, 25 insertions, 64 deletions
diff --git a/meta-oe/recipes-extended/indent/indent/0001-Fix-a-heap-buffer-underread-in-set_buf_break.patch b/meta-oe/recipes-extended/indent/indent/0001-Fix-a-heap-buffer-underread-in-set_buf_break.patch index 9938b6ebed..49adf84aa7 100644 --- a/meta-oe/recipes-extended/indent/indent/0001-Fix-a-heap-buffer-underread-in-set_buf_break.patch +++ b/meta-oe/recipes-extended/indent/indent/0001-Fix-a-heap-buffer-underread-in-set_buf_break.patch | |||
| @@ -76,10 +76,10 @@ diff --git a/regression/TEST b/regression/TEST | |||
| 76 | index a76c112..0888a18 100755 | 76 | index a76c112..0888a18 100755 |
| 77 | --- a/regression/TEST | 77 | --- a/regression/TEST |
| 78 | +++ b/regression/TEST | 78 | +++ b/regression/TEST |
| 79 | @@ -38,7 +38,7 @@ BUGS="case-label.c one-line-1.c one-line-2.c one-line-3.c \ | 79 | @@ -40,7 +40,7 @@ |
| 80 | macro.c enum.c elif.c nested.c wrapped-string.c minus_predecrement.c \ | 80 | macro.c enum.c elif.c nested.c wrapped-string.c minus_predecrement.c \ |
| 81 | bug-gnu-33364.c float-constant-suffix.c block-comments.c \ | 81 | bug-gnu-33364.c float-constant-suffix.c block-comments.c \ |
| 82 | no-forced-nl-in-block-init.c hexadecimal_float.c \ | 82 | no-forced-nl-in-block-init.c hexadecimal_float.c binary-constant.c \ |
| 83 | - comment-heap-overread.c" | 83 | - comment-heap-overread.c" |
| 84 | + comment-heap-overread.c comment-parent-heap-underread.c" | 84 | + comment-heap-overread.c comment-parent-heap-underread.c" |
| 85 | 85 | ||
diff --git a/meta-oe/recipes-extended/indent/indent/0001-Fix-builds-with-recent-gettext.patch b/meta-oe/recipes-extended/indent/indent/0001-Fix-builds-with-recent-gettext.patch deleted file mode 100644 index e9dadace02..0000000000 --- a/meta-oe/recipes-extended/indent/indent/0001-Fix-builds-with-recent-gettext.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | From 3349812de0598ca7722e0b7c7b7e5d48bd79bea9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Fri, 20 Dec 2019 14:01:18 +0100 | ||
| 4 | Subject: [PATCH] Fix builds with recent gettext | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 8 | --- | ||
| 9 | Makefile.am | 2 +- | ||
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 11 | |||
| 12 | --- a/Makefile.am | ||
| 13 | +++ b/Makefile.am | ||
| 14 | @@ -1,7 +1,7 @@ | ||
| 15 | ## Process this file with automake to produce Makefile.in | ||
| 16 | AUTOMAKE_OPTIONS = no-texinfo.tex | ||
| 17 | |||
| 18 | -SUBDIRS = intl src doc po man | ||
| 19 | +SUBDIRS = src po man | ||
| 20 | |||
| 21 | BUILT_SOURCES = | ||
| 22 | |||
| 23 | --- a/configure.ac | ||
| 24 | +++ b/configure.ac | ||
| 25 | @@ -58,7 +58,6 @@ fi | ||
| 26 | AC_HEADER_DIRENT | ||
| 27 | |||
| 28 | AC_OUTPUT([ | ||
| 29 | - intl/Makefile | ||
| 30 | po/Makefile.in | ||
| 31 | Makefile | ||
| 32 | src/Makefile | ||
diff --git a/meta-oe/recipes-extended/indent/indent/0001-Makefile.am-remove-regression-dir.patch b/meta-oe/recipes-extended/indent/indent/0001-Makefile.am-remove-regression-dir.patch index 357d77d835..e4e0ac590c 100644 --- a/meta-oe/recipes-extended/indent/indent/0001-Makefile.am-remove-regression-dir.patch +++ b/meta-oe/recipes-extended/indent/indent/0001-Makefile.am-remove-regression-dir.patch | |||
| @@ -47,13 +47,13 @@ index ba37a42..548fea7 100644 | |||
| 47 | ## Process this file with automake to produce Makefile.in | 47 | ## Process this file with automake to produce Makefile.in |
| 48 | AUTOMAKE_OPTIONS = no-texinfo.tex | 48 | AUTOMAKE_OPTIONS = no-texinfo.tex |
| 49 | 49 | ||
| 50 | -SUBDIRS = intl src doc po man regression | 50 | -SUBDIRS = src doc po man regression |
| 51 | +SUBDIRS = intl src doc po man | 51 | +SUBDIRS = src doc po man |
| 52 | 52 | ||
| 53 | BUILT_SOURCES = | 53 | BUILT_SOURCES = |
| 54 | 54 | ||
| 55 | @@ -13,8 +13,7 @@ EXTRA_DIST = README.md \ | 55 | @@ -13,8 +13,7 @@ |
| 56 | aclocal/UTIMBUF.m4 \ | 56 | m4/UTIMBUF.m4 \ |
| 57 | miscel/Makefile.mingw32 \ | 57 | miscel/Makefile.mingw32 \ |
| 58 | miscel/README.vc++ \ | 58 | miscel/README.vc++ \ |
| 59 | - bootstrap \ | 59 | - bootstrap \ |
| @@ -62,6 +62,3 @@ index ba37a42..548fea7 100644 | |||
| 62 | 62 | ||
| 63 | DISTCLEANFILES=config/config.cache config/config.log config.h | 63 | DISTCLEANFILES=config/config.cache config/config.log config.h |
| 64 | 64 | ||
| 65 | -- | ||
| 66 | 2.17.1 | ||
| 67 | |||
diff --git a/meta-oe/recipes-extended/indent/indent/0001-Remove-dead-paren_level-code.patch b/meta-oe/recipes-extended/indent/indent/0001-Remove-dead-paren_level-code.patch index 5a474cf0fc..3c7856e571 100644 --- a/meta-oe/recipes-extended/indent/indent/0001-Remove-dead-paren_level-code.patch +++ b/meta-oe/recipes-extended/indent/indent/0001-Remove-dead-paren_level-code.patch | |||
| @@ -18,14 +18,10 @@ diff --git a/src/output.c b/src/output.c | |||
| 18 | index ee01bcc..5b92167 100644 | 18 | index ee01bcc..5b92167 100644 |
| 19 | --- a/src/output.c | 19 | --- a/src/output.c |
| 20 | +++ b/src/output.c | 20 | +++ b/src/output.c |
| 21 | @@ -798,37 +798,6 @@ static int dump_line_label(void) | 21 | @@ -802,37 +802,6 @@ |
| 22 | return cur_col; | 22 | * |
| 23 | } | 23 | */ |
| 24 | 24 | ||
| 25 | -/** | ||
| 26 | - * | ||
| 27 | - */ | ||
| 28 | - | ||
| 29 | -static int count_parens( | 25 | -static int count_parens( |
| 30 | - const char * string) | 26 | - const char * string) |
| 31 | -{ | 27 | -{ |
| @@ -53,10 +49,14 @@ index ee01bcc..5b92167 100644 | |||
| 53 | - return paren_level; | 49 | - return paren_level; |
| 54 | -} | 50 | -} |
| 55 | - | 51 | - |
| 56 | /** | 52 | -/** |
| 57 | * | 53 | - * |
| 58 | */ | 54 | - */ |
| 59 | @@ -840,8 +809,6 @@ static void dump_line_code( | 55 | - |
| 56 | static void dump_line_code( | ||
| 57 | int * pcur_col, | ||
| 58 | int * pnot_truncated, | ||
| 59 | @@ -840,8 +809,6 @@ | ||
| 60 | BOOLEAN * pbreak_line, | 60 | BOOLEAN * pbreak_line, |
| 61 | int target_col_break) | 61 | int target_col_break) |
| 62 | { | 62 | { |
| @@ -65,7 +65,7 @@ index ee01bcc..5b92167 100644 | |||
| 65 | if (s_code != e_code) | 65 | if (s_code != e_code) |
| 66 | { /* print code section, if any */ | 66 | { /* print code section, if any */ |
| 67 | int i; | 67 | int i; |
| 68 | @@ -928,8 +895,6 @@ static void dump_line_code( | 68 | @@ -928,8 +895,6 @@ |
| 69 | 69 | ||
| 70 | *pcur_col = count_columns (*pcur_col, s_code, NULL_CHAR); | 70 | *pcur_col = count_columns (*pcur_col, s_code, NULL_CHAR); |
| 71 | 71 | ||
| @@ -74,6 +74,3 @@ index ee01bcc..5b92167 100644 | |||
| 74 | s_code[buf_break->offset] = c; | 74 | s_code[buf_break->offset] = c; |
| 75 | 75 | ||
| 76 | *pnot_truncated = 0; | 76 | *pnot_truncated = 0; |
| 77 | -- | ||
| 78 | 2.31.1 | ||
| 79 | |||
diff --git a/meta-oe/recipes-extended/indent/indent/CVE-2023-40305_0001.patch b/meta-oe/recipes-extended/indent/indent/CVE-2023-40305_0001.patch index 367202e3c5..ae48271732 100644 --- a/meta-oe/recipes-extended/indent/indent/CVE-2023-40305_0001.patch +++ b/meta-oe/recipes-extended/indent/indent/CVE-2023-40305_0001.patch | |||
| @@ -74,14 +74,14 @@ diff --git a/regression/TEST b/regression/TEST | |||
| 74 | index 56f41d9..a7a6747 100755 | 74 | index 56f41d9..a7a6747 100755 |
| 75 | --- a/regression/TEST | 75 | --- a/regression/TEST |
| 76 | +++ b/regression/TEST | 76 | +++ b/regression/TEST |
| 77 | @@ -37,7 +37,8 @@ BUGS="case-label.c one-line-1.c one-line-2.c one-line-3.c \ | 77 | @@ -39,7 +39,8 @@ |
| 78 | one-line-4.c struct-decl.c sizeof-in-while.c line-break-comment.c \ | 78 | one-line-4.c struct-decl.c sizeof-in-while.c line-break-comment.c \ |
| 79 | macro.c enum.c elif.c nested.c wrapped-string.c minus_predecrement.c \ | 79 | macro.c enum.c elif.c nested.c wrapped-string.c minus_predecrement.c \ |
| 80 | bug-gnu-33364.c float-constant-suffix.c block-comments.c \ | 80 | bug-gnu-33364.c float-constant-suffix.c block-comments.c \ |
| 81 | - no-forced-nl-in-block-init.c hexadecimal_float.c" | 81 | - no-forced-nl-in-block-init.c hexadecimal_float.c binary-constant.c" |
| 82 | + no-forced-nl-in-block-init.c hexadecimal_float.c \ | 82 | + no-forced-nl-in-block-init.c hexadecimal_float.c binary-constant.c \ |
| 83 | + comment-heap-overread.c" | 83 | + comment-heap-overread.c" |
| 84 | 84 | ||
| 85 | INDENTSRC="args.c backup.h backup.c dirent_def.h globs.c indent.h \ | 85 | INDENTSRC="args.c backup.h backup.c dirent_def.h globs.c indent.h \ |
| 86 | indent.c indent_globs.h io.c lexi.c memcpy.c parse.c pr_comment.c \ | 86 | indent.c indent_globs.h io.c lexi.c memcpy.c parse.c pr_comment.c \ |
| 87 | diff --git a/regression/input/comment-heap-overread.c b/regression/input/comment-heap-overread.c | 87 | diff --git a/regression/input/comment-heap-overread.c b/regression/input/comment-heap-overread.c |
diff --git a/meta-oe/recipes-extended/indent/indent_2.2.12.bb b/meta-oe/recipes-extended/indent/indent_2.2.13.bb index 000abe4447..f9d5025a65 100644 --- a/meta-oe/recipes-extended/indent/indent_2.2.12.bb +++ b/meta-oe/recipes-extended/indent/indent_2.2.13.bb | |||
| @@ -10,20 +10,19 @@ you want a program to format your code." | |||
| 10 | LICENSE = "GPL-3.0-only" | 10 | LICENSE = "GPL-3.0-only" |
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 12 | 12 | ||
| 13 | DEPENDS = "virtual/gettext" | 13 | DEPENDS = "virtual/gettext texinfo-replacement-native" |
| 14 | 14 | ||
| 15 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ | 15 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ |
| 16 | file://0001-src-indent.c-correct-the-check-for-locale.h.patch \ | 16 | file://0001-src-indent.c-correct-the-check-for-locale.h.patch \ |
| 17 | file://0001-Makefile.am-remove-regression-dir.patch \ | 17 | file://0001-Makefile.am-remove-regression-dir.patch \ |
| 18 | file://0001-Fix-builds-with-recent-gettext.patch \ | ||
| 19 | file://0001-Remove-dead-paren_level-code.patch \ | 18 | file://0001-Remove-dead-paren_level-code.patch \ |
| 20 | file://CVE-2023-40305_0001.patch \ | 19 | file://CVE-2023-40305_0001.patch \ |
| 21 | file://CVE-2023-40305_0002.patch \ | 20 | file://CVE-2023-40305_0002.patch \ |
| 22 | file://0001-Fix-a-heap-buffer-underread-in-set_buf_break.patch \ | 21 | file://0001-Fix-a-heap-buffer-underread-in-set_buf_break.patch \ |
| 23 | " | 22 | " |
| 24 | SRC_URI[sha256sum] = "e77d68c0211515459b8812118d606812e300097cfac0b4e9fb3472664263bb8b" | 23 | SRC_URI[sha256sum] = "9e64634fc4ce6797b204bcb8897ce14fdd0ab48ca57696f78767c59cae578095" |
| 25 | 24 | ||
| 26 | inherit autotools gettext texinfo | 25 | inherit autotools gettext |
| 27 | 26 | ||
| 28 | CFLAGS:append:class-native = " -Wno-error=unused-value" | 27 | CFLAGS:append:class-native = " -Wno-error=unused-value" |
| 29 | 28 | ||
