aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/mem.c
diff options
context:
space:
mode:
authorJohn Tsichritzis <john.tsichritzis@arm.com>2018-05-25 09:12:48 +0100
committerJohn Tsichritzis <john.tsichritzis@arm.com>2018-06-11 11:41:09 +0100
commitbdcd33a858eb14a59128f142376c3735e9df65c9 (patch)
treedb3060587b9db7a4d87f52ea0ed1b28e31bb6e0a /lib/stdlib/mem.c
parent11bebd7cab0873d04ad8f1d3ccd538f4d5b80ccb (diff)
downloadplatform_external_arm-trusted-firmware-bdcd33a858eb14a59128f142376c3735e9df65c9.tar.gz
platform_external_arm-trusted-firmware-bdcd33a858eb14a59128f142376c3735e9df65c9.tar.bz2
platform_external_arm-trusted-firmware-bdcd33a858eb14a59128f142376c3735e9df65c9.zip
MISRA rule 21.15 fix
Rule 21.15: The pointer arguments to the Standard Library functions memcpy, memmove and memcmp shall be pointers to qualified or unqualified versions of compatible types. Basically that means that both pointer arguments must be of the same type. However, even if the pointers passed as arguments to the above functions are of the same type, Coverity still thinks it's a violation if we do pointer arithmetics directly at the function call. Thus the pointer arithmetic operations were moved outside of the function argument. First detected on the following configuration make PLAT=fvp LOG_LEVEL=50 Change-Id: I8b912ec1bfa6f2d60857cb1bd453981fd7001b94 Signed-off-by: John Tsichritzis <john.tsichritzis@arm.com>
Diffstat (limited to 'lib/stdlib/mem.c')
0 files changed, 0 insertions, 0 deletions