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>
1 file changed