-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd9172f
commit 8a0e1bb
Showing
2 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
package/extra/dawn/patches/0001-datastorage-fix-use-after-free-compiler-error.patch
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,27 @@ | ||
From 518ad70bd1340de7e63ae806524bfb1e5350959d Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Martin=20Mat=C4=9Bjek?= <martin.matejek@gmx.com> | ||
Date: Sun, 23 Oct 2022 22:05:48 +0200 | ||
Subject: [PATCH 1/2] datastorage: fix use-after-free compiler error | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
Closes: #198 | ||
|
||
Signed-off-by: Martin Matějek <martin.matejek@gmx.com> | ||
--- | ||
src/storage/datastorage.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
--- a/src/storage/datastorage.c | ||
+++ b/src/storage/datastorage.c | ||
@@ -1332,8 +1332,8 @@ void insert_macs_from_file() { | ||
} | ||
} | ||
|
||
- fclose(fp); | ||
dawn_unregmem(fp); | ||
+ fclose(fp); | ||
if (line) | ||
{ | ||
free(line); |
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