openssl-1.1: add patches for CVE-2024-2511 and CVE-2024-4741
[oi-userland.git] / components / library / gtk+ / patches / 13-check-libs.patch
blobc7f2c1f0fc3e928538a9a885d33cf42e17089616
1 --- gtk+-2.24.33/modules/printbackends/cups/gtkprintbackendcups.c.orig
2 +++ gtk+-2.24.33/modules/printbackends/cups/gtkprintbackendcups.c
3 @@ -263,6 +263,23 @@
4 G_MODULE_EXPORT GtkPrintBackend *
5 pb_module_create (void)
7 + static gboolean loaded = FALSE;
9 + if (!loaded)
10 + {
11 + GModule *cups;
12 + GModuleFlags flags;
14 + flags = G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL;
16 + cups = g_module_open ("libcups.so", flags);
17 + loaded = TRUE;
18 + if (!cups)
19 + return NULL;
20 + else
21 + g_module_close (cups);
22 + }
24 return gtk_print_backend_cups_new ();
26 /* CUPS 1.6 Getter/Setter Functions CUPS 1.6 makes private most of the