display: Remove klockwork warnings and errors.

Remove all klockwork warnings and errors for libgralloc,
libhwcomposer, liboverlay, libqdutils, libqservice, libvirtual,
libexternal libraries to avoid buffer overflow and memory leaks.

Change-Id: I078143bcbcf5e4b342156bd8305a644566f7cc4b
This commit is contained in:
Ramkumar Radhakrishnan
2014-01-31 20:03:01 -08:00
parent ec6bd69a1c
commit 36bd527bc8
16 changed files with 102 additions and 73 deletions

View File

@@ -566,9 +566,7 @@ void getBufferAttributes(int width, int height, int format, int usage,
tileEnabled,
alignedw,
alignedh);
if(size)
size = getSize(format, width, height, alignedw, alignedh);
size = getSize(format, width, height, alignedw, alignedh);
}