Commit: e75b28ed4b94e3d237ce6e47aef2a2a0d8555ae7
Parent: 25894c2cf420d3b8a286cfe84988670b61794875
Author: Sunil Kumar Behera <sunil.behera@samsung.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:50
Tree: 1521038f3dbe344ebf5e29765e03edd04d1fd0df

obexd: Fix possible invalid memory access Issue: As reported by static code analyzer (Coverity), if buffer is NULL and aparams is not NULL, then buffer gets dereferenced in string_read function. Fix: Application parameter is allocated only if maxlistcount is zero during phonebooksize request and buffer is allocated in case of pull phonebook request, hence modify logic to avoid application parameter check, as it is tightly coupled with maxlistcount.

Diffstat

M obexd/plugins/pbap.c | 9 +++++- - - -

1 files changed, 5 insertions(+), 4 deletions(-)

View Full Diff | Patch