aboutsummaryrefslogtreecommitdiff
path: root/module-common.c
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2017-10-16 14:21:59 +0200
committerGreg Kurz <groug@kaod.org>2017-10-16 14:21:59 +0200
commit7bd92756303f2158a68d5166264dc30139b813b6 (patch)
tree8aa940b57f17c97518b7fae6890ba1a4f3624ba9 /module-common.c
parent40a1e8ac2e10155b5df13a2508ac080b00cd7e23 (diff)
9pfs: use g_malloc0 to allocate space for xattr
9p back-end first queries the size of an extended attribute, allocates space for it via g_malloc() and then retrieves its value into allocated buffer. Race between querying attribute size and retrieving its could lead to memory bytes disclosure. Use g_malloc0() to avoid it. Reported-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Signed-off-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions