- text-mmap-check-failed-addr.patch: Fix missing error check from mmap (CVE-2025-8746, bsc#1247921) OBS-URL: https://build.opensuse.org/request/show/1304825 OBS-URL: https://build.opensuse.org/package/show/Base:System/autogen?expand=0&rev=82
15 lines
521 B
Diff
15 lines
521 B
Diff
Index: autogen-5.18.16/autoopts/save.c
|
|
===================================================================
|
|
--- autogen-5.18.16.orig/autoopts/save.c
|
|
+++ autogen-5.18.16/autoopts/save.c
|
|
@@ -494,6 +494,9 @@ remove_settings(tOptions * opts, char co
|
|
char * text = text_mmap(fname, PROT_READ|PROT_WRITE, MAP_PRIVATE, &map_info);
|
|
char * scan = text;
|
|
|
|
+ if (TEXT_MMAP_FAILED_ADDR(text))
|
|
+ return;
|
|
+
|
|
for (;;) {
|
|
char * next = scan = strstr(scan, zCfgProg);
|
|
if (scan == NULL)
|