screen/screen-4.3.1-crypt.patch
Troy Dawson 415d963ed6 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/screen#3c7a321293ff3a7939bd29f339f19e0f46ea3bd6
2020-10-15 09:25:18 -07:00

16 lines
363 B
Diff

check crypt output (rhbz#815605)
diff --git a/misc.c b/misc.c
index 2022a06..235c82f 100644
--- a/misc.c
+++ b/misc.c
@@ -57,6 +57,8 @@ register const char *str;
{
register char *cp;
+ if(str == NULL)
+ Panic(0, "SaveStr() received NULL - possibly failed crypt()");
if ((cp = malloc(strlen(str) + 1)) == NULL)
Panic(0, "%s", strnomem);
else