commit | 00e87d23b337a38cbb7a8ea36d78444dc1b1e06f | [log] [tgz] |
---|---|---|
author | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | Mon Aug 12 11:51:09 2019 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Sep 04 20:03:12 2019 -0700 |
tree | fcd7d7697d76e59530ff62f4ce6c339380d5205f | |
parent | 0a1b15d427086f265f6e88d4711a2f8f55bafd4b [diff] |
sde-drm: Fix potential buffer overflow Initializing the string stream with blob data pointer directly may cause buffer overflow, if the blob data pointer is not terminated with NULL character. So copy the blob data into character array and explicitly terminate with null character before initializing the stringstream to avoid buffer overflow. Change-Id: I75fca3b4ecfbf3bc5b8865afdb4ab51b25aff22c