Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MFH: 2024Q1 Security: 388eefc0-c93f-11ee-92ce-4ccc6adda413
- Loading branch information
Showing
7 changed files
with
35 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1661500384 | ||
SHA256 (readstat-1.1.8.tar.gz) = b18a0d68059d9665491e53838b3ca89b06c3bdaa3b0a11d4ba87d830b743e178 | ||
SIZE (readstat-1.1.8.tar.gz) = 615498 | ||
TIMESTAMP = 1707695225 | ||
SHA256 (readstat-1.1.9.tar.gz) = 3a232b9e852d10173e2f25da9155afe2e129a30d1fc6c9aac142cdc5cbfe527e | ||
SIZE (readstat-1.1.9.tar.gz) = 617234 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From d9b3c922d664d03100b9f37da129b382054ea3b2 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= <csardi.gabor@gmail.com> | ||
Date: Fri, 9 Feb 2024 18:31:01 -0500 | ||
Subject: [PATCH] Fix a buffer overflow | ||
|
||
It happens if raw_str_used underflows and ends up a very large number, | ||
which is then used as the size of a string. | ||
|
||
Closes #285. | ||
|
||
https://github.com/WizardMac/ReadStat/issues/285 | ||
https://github.com/WizardMac/ReadStat/pull/311 | ||
|
||
--- src/spss/readstat_sav_read.c.orig 2023-01-15 21:33:14 UTC | ||
+++ src/spss/readstat_sav_read.c | ||
@@ -717,7 +717,7 @@ static readstat_error_t sav_process_row(unsigned char | ||
} | ||
if (++offset == col_info->width) { | ||
if (++segment_offset < var_info->n_segments) { | ||
- raw_str_used--; | ||
+ if (raw_str_used > 0) raw_str_used--; | ||
} | ||
offset = 0; | ||
col++; |