[vhffs-dev] Vhffs-fs patch |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
- To: vhffs-dev@xxxxxxxxx
- Subject: [vhffs-dev] Vhffs-fs patch
- From: Stéphane Bauland <joligardon@xxxxxxxxx>
- Date: Sun, 04 Nov 2007 20:57:45 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type; bh=5d0/Sk/1ctOueznSBX0fKfcvfdPU91185vdHyUCZwBE=; b=E9uNEe4CkoTBU3hQIlixLFvQRIgjpkqurYrKbQMIXlTl8THGc2MtsgxVvdRe0idYdFSgfnXsd84Rg7Og0KxoZPs7BZki4SzxrnGWuXNKoAMyHIvTbUVd3TWFLddiMMW4c6XH9WGEaHjlEOVvKCTeQfnYUsymIgb29+Qvu/f4Ui4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type; b=BCaJWBdCE2i7N9pQy1V2pSdMIJk4NNR5w+9ENdb+IKzbW3XWGRYrUnQhH2jo2sMgXUlgMR4KZSoTIMCEQdOUGvCQ9rWRoFRKUIh+i5ozDb0A6On8A+EXxUOK/nvciAW/2O847svOopn5tJ+k8vVC+x+QOdj1my9AejP3z8v4pCM=
Bon aller pendant qu'on y est.
Un ptit patch de sécu pour vhffsfs.
--
Bauland Stephane (aka rookmoot) <joligardon@xxxxxxxxx>
Index: vhffsfs.c
===================================================================
--- vhffsfs.c (révision 1062)
+++ vhffsfs.c (copie de travail)
@@ -160,7 +160,8 @@
#ifdef WITH_CACHE_DEBUG
printf("CACHE: ADDING: '%s'\n", query);
#endif
- vcq = malloc(sizeof(vhffsfs_cache_query));
+ if (!(vcq = malloc(sizeof(vhffsfs_cache_query))))
+ return NULL;
vcq->query = strdup(query);
vcq->result = result;
vcq->arrival = vhffsfs_cache_arrival();