e199036ed3
- Added x3270-handle-missing-font.patch (bsc#1177104) In some cases when fonts are present locally but are not present in the fontpath, x3270 can crash due to a segfault caused by XLoadQueryFont() returning NULL in lff_single(). OBS-URL: https://build.opensuse.org/request/show/871352 OBS-URL: https://build.opensuse.org/package/show/Base:System/x3270?expand=0&rev=54
14 lines
396 B
Diff
14 lines
396 B
Diff
--- x3270/screen.c 2020-10-30 13:35:58.238416347 +0100
|
|
+++ x3270/screen.c 2020-10-30 13:39:12.721353850 +0100
|
|
@@ -4686,7 +4686,9 @@
|
|
}
|
|
}
|
|
|
|
- g = XLoadQueryFont(display, best);
|
|
+ if ((g = XLoadQueryFont(display, best)) == NULL) {
|
|
+ return xs_buffer("Font %s could not be loaded", best);
|
|
+ }
|
|
set_font_globals(g, /*name*/best, best, g->fid, is_dbcs);
|
|
return NULL;
|
|
}
|