diff options
| author | Prasad J Pandit <pjp@fedoraproject.org> | 2017-10-16 14:21:59 +0200 |
|---|---|---|
| committer | Greg Kurz <groug@kaod.org> | 2017-10-16 14:21:59 +0200 |
| commit | 7bd92756303f2158a68d5166264dc30139b813b6 (patch) | |
| tree | 8aa940b57f17c97518b7fae6890ba1a4f3624ba9 /scripts/git-submodule.sh | |
| parent | 40a1e8ac2e10155b5df13a2508ac080b00cd7e23 (diff) | |
| download | focaccia-qemu-7bd92756303f2158a68d5166264dc30139b813b6.tar.gz focaccia-qemu-7bd92756303f2158a68d5166264dc30139b813b6.zip | |
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 'scripts/git-submodule.sh')
0 files changed, 0 insertions, 0 deletions