screen/screen-4.3.1-crypt.patch
Vaclav Dolezal 1c81c3cfed New upstream release 4.7.0
- drop Patch6 (texinfo): it's no longer needed as contributor list
   uses @verbatim now
 - drop unused screen-altscreen.patch
 - added descriptions to patches

Resolves: #1757638
2019-10-03 14:56:52 +02:00

16 lines
363 B
Diff

check crypt output (rhbz#815605)
diff --git a/misc.c b/misc.c
index 43e93a2..178fda9 100644
--- a/misc.c
+++ b/misc.c
@@ -56,6 +56,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