[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[COMMITTED] parser: avoid character 0xff being interpreted as (int) -1
From: |
Jose E. Marchesi |
Subject: |
[COMMITTED] parser: avoid character 0xff being interpreted as (int) -1 |
Date: |
Sat, 16 Apr 2022 17:13:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
This fixes the following CVEs:
- CVE-2021-46019
- CVE-2021-46022
- CVE-2021-46022
2022-04-16 Jose E. Marchesi <jemarch@gnu.org>
CVE-2021-46019
CVE-2021-46022
CVE-2021-46022
* src/rec-parser.c (rec_parse_comment): Avoid 0xff being
interpreted as (int) -1.
---
ChangeLog | 8 ++++++++
src/rec-parser.c | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 35f0552..11279b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2022-04-16 Jose E. Marchesi <jemarch@gnu.org>
+ CVE-2021-46019
+ CVE-2021-46022
+ CVE-2021-46022
+ * src/rec-parser.c (rec_parse_comment): Avoid 0xff being
+ interpreted as (int) -1.
+
+2022-04-16 Jose E. Marchesi <jemarch@gnu.org>
+
* configure.ac: Remove algol68 bindings support.
* Makefile.am: Remove algol68 from subdirs.
* algol68: Delete.
diff --git a/src/rec-parser.c b/src/rec-parser.c
index f59bde8..f260410 100644
--- a/src/rec-parser.c
+++ b/src/rec-parser.c
@@ -432,7 +432,7 @@ rec_parse_comment (rec_parser_t parser, rec_comment_t
*comment)
c = '\n';
}
- if (rec_buf_putc (c, buf) == EOF)
+ if (rec_buf_putc (ci, buf) == EOF)
{
/* Out of memory */
parser->error = REC_PARSER_ENOMEM;
--
2.11.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [COMMITTED] parser: avoid character 0xff being interpreted as (int) -1,
Jose E. Marchesi <=