commit | cafc53c0ac77c2aa7564cea26120da6bc0c589f2 | [log] [tgz] |
---|---|---|
author | James Dong <jdong@google.com> | Thu May 31 13:06:53 2012 -0700 |
committer | James Dong <jdong@google.com> | Thu May 31 17:13:39 2012 -0700 |
tree | 4ea43af46b70d18c4a7d6b827579888555b363a0 | |
parent | 83410a85993ad6f5f0c122036ff0bda42bf1d4f7 [diff] |
Fix another buffer overflow issue Using hard-coded length value easily leads to buffer overflow. Refactor the code a bit to make it more readable, and more extensible, and less subject to the buffer overflow coding error. Patch originally contributed by teng.hong@nxp.com Change-Id: Id262915302ccea8ae3b0121bf39890ab463aeeb7 related-to-bug: 6328360