Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b1e1aee

Browse files
committedJun 9, 2020
OPTEE: fix clang error
security/optee_linuxdriver/core/tee_session.c:57:3: error: 'sprintf' will always overflow; destination buffer has size 35, but format string expands to at least 36 [-Werror,-Wfortify-source] Change-Id: Ie5b2ccfc4fca053b6d88278b1019997ad0dd3ee5 Signed-off-by: Tao Huang <[email protected]>
1 parent e4da1c3 commit b1e1aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎security/optee_linuxdriver/core/tee_session.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static inline bool is_mapped_temp(int flags)
4848

4949
/******************************************************************************/
5050

51-
#define _UUID_STR_SIZE 35
51+
#define _UUID_STR_SIZE 36
5252
static char *_uuid_to_str(const TEEC_UUID *uuid)
5353
{
5454
static char uuid_str[_UUID_STR_SIZE];

0 commit comments

Comments
 (0)
Please sign in to comment.