Commit: fb0998ac3ea5cc85569c5f89b004fa88959af2c0
Parent: 66e479d47fec65b9bab8be5869f88b3d48275300
Author: Luiz Augusto Von Dentz <luiz.dentz-von@nokia.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:06
Tree: 70e618c85e92865f43f170640552fc73e604c1e7

obexd: Fix string_read when reading chunks The chunks normally are not NUL terminate which might cause strlen to cause an invalid read. The fix is basically use GString len to calculate how much data can be copy in advance and use memcpy to do the job.

Diffstat

M obexd/plugins/filesystem.c | 4 ++- -

1 files changed, 2 insertions(+), 2 deletions(-)

View Full Diff | Patch