This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6b4e6a03357fa3df6d09a0afbc732897425029cf
Author: Royyan Zahir <[email protected]>
AuthorDate: Sun Oct 4 08:25:02 2026 +0400

    drivers/crypto/se05x: zero the size a failed read leaves
    
    pnt_se05x_get_data() compared the object size with the buffer even when 
ReadSize had failed and left it unset.
    
    Signed-off-by: Royyan Zahir <[email protected]>
---
 drivers/crypto/pnt/pnt_se05x_api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/pnt/pnt_se05x_api.c 
b/drivers/crypto/pnt/pnt_se05x_api.c
index 46f2892576d..53f5fe319e9 100644
--- a/drivers/crypto/pnt/pnt_se05x_api.c
+++ b/drivers/crypto/pnt/pnt_se05x_api.c
@@ -247,7 +247,7 @@ int pnt_se05x_get_key(FAR struct se05x_dev_s *se05x,
 int pnt_se05x_get_data(FAR struct se05x_dev_s *se05x,
                        FAR struct se05x_key_transmission_s *get_key_args)
 {
-  uint16_t remainder;
+  uint16_t remainder = 0;
   smStatus_t status = Se05x_API_ReadSize(&(se05x->pnt->session),
                                          get_key_args->entry.id, &remainder);
 

Reply via email to