rpc-pipefs-generator: allocate enough space (bz 2109420)

Signed-off-by: Steve Dickson <steved@redhat.com>
Resolves: bz2109420
This commit is contained in:
Steve Dickson 2022-07-22 12:44:15 -04:00
parent 04506e2d25
commit 7e5614398a
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ index c24db567..7b2bb4f7 100644
{ {
char *path; char *path;
FILE *f; FILE *f;
+ size_t size = (strlen(dirname) + 1 + strlen(pipefs_unit)); + size_t size = (strlen(dirname) + 1 + strlen(pipefs_unit) + 1);
- path = malloc(strlen(dirname) + 1 + strlen(pipefs_unit)); - path = malloc(strlen(dirname) + 1 + strlen(pipefs_unit));
+ path = malloc(size); + path = malloc(size);

View File

@ -467,6 +467,7 @@ fi
- idmapd: Fix error status when nfs-idmapd exits (bz 2001764) - idmapd: Fix error status when nfs-idmapd exits (bz 2001764)
- mount.nfs Fix error reporting for already mounted shares (bz 2054300) - mount.nfs Fix error reporting for already mounted shares (bz 2054300)
- rpcctl - fix failure when setting xprt offline and online (bz 2081934) - rpcctl - fix failure when setting xprt offline and online (bz 2081934)
- rpc-pipefs-generator: allocate enough space (bz 2109420)
* Sat Jul 16 2022 Steve Dickson <steved@redhat.com> 2.5.4-11 * Sat Jul 16 2022 Steve Dickson <steved@redhat.com> 2.5.4-11
- nfs.man: adding new mount option max_connect (bz 2106848) - nfs.man: adding new mount option max_connect (bz 2106848)