I discovered some expressions in our code earlier today that I expected to be triggering 12.2 but they don't seem to make it happen. I've duplicated on HEAD with the following small snipit.
You are right, this is not working for unsigned char array.
This is ok for unsigned char and signed char.
It should generates an error in your case (and in the case below).
I discovered some expressions in our code earlier today that I expected to be triggering 12.2 but they don't seem to make it happen. I've duplicated on HEAD with the following small snipit.
Can someone verify this is not working?
m1.c is the following:
Hi Richard,
You are right, this is not working for unsigned char array.
This is ok for unsigned char and signed char.
It should generates an error in your case (and in the case below).
I think the problem comes from array variables. But i'm not able to correct it i'm not a python programmer.
Last edit: Jean-Loic MARTIN 2021-01-05
Up of this topic.
Has someone opened a ticket for that problem ?
good that you reminded me. Now I have created a ticket:
https://trac.cppcheck.net/ticket/10113
thank you Daniel !