File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
api-tests/ff/ipc/test_i047 Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
/** @file
2
- * Copyright (c) 2019-2024 , Arm Limited or its affiliates. All rights reserved.
2
+ * Copyright (c) 2019-2025 , Arm Limited or its affiliates. All rights reserved.
3
3
* SPDX-License-Identifier : Apache-2.0
4
4
*
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -206,9 +206,21 @@ int32_t server_test_psa_get_with_invalid_msg_pointer(void)
206
206
val -> print (PRINT_ERROR , "\tFailed to set boot flag after check\n" , 0 );
207
207
}
208
208
209
+ /* GCC null-dereference check fails because of invalid_msg, however this
210
+ * part should not be reached according the comment above.
211
+ */
212
+ #if defined(__GNUC__ )
213
+ #pragma GCC diagnostic push
214
+ #pragma GCC diagnostic ignored "-Wnull-dereference"
215
+ #endif
216
+
209
217
/* Reject the connection */
210
218
psa -> reply (invalid_msg -> handle , PSA_ERROR_CONNECTION_REFUSED );
211
219
220
+ #if defined(__GNUC__ )
221
+ #pragma GCC diagnostic pop
222
+ #endif
223
+
212
224
return VAL_STATUS_SPM_FAILED ;
213
225
}
214
226
You can’t perform that action at this time.
0 commit comments