commit | 494051e36b243b29bcb1bd7440b07811e01fb2e1 | [log] [tgz] |
---|---|---|
author | neo.chae <neo.chae@lge.com> | Tue Sep 06 16:12:46 2016 +0900 |
committer | neo.chae <neo.chae@lge.com> | Fri Sep 09 12:34:50 2016 +0900 |
tree | 10e5ca6f372598a70f7724467690dbd5b28e2238 | |
parent | cd185c688ef8a026a9d5a08313c747e5c2f476d7 [diff] |
Fix a memory corruption (NativeCodeTest testPipeReadV) 1. Use after initialize. void *bufs[BUFS] is located in stack and does not initilized. But, testcase is using the variable before memory allocation. So, readv could write to unexpected memory address. 2. Remove useless code. iovs[OVERFLOW_BUF - 1] will be initialized after assign. So, it is a useless code. Change-Id: Ibe424db64a5eb8020c1067ee4786631fe85b1b2a Signed-off-by: Hyangseok Chae <neo.chae@lge.com>