Re: [PATCH] cpukit/score: Avoid overflow in multiplication

2024-01-17 Thread Kinsey Moore
Fair enough. I'll update the patch. Thanks! On Wed, Jan 17, 2024 at 12:45 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 16.01.24 21:02, Kinsey Moore wrote: > > The two operands are 16 bit and the result is being saved into a > > larger type. Reduce the possibility of an ove

Re: [PATCH] cpukit/score: Avoid overflow in multiplication

2024-01-16 Thread Sebastian Huber
On 16.01.24 21:02, Kinsey Moore wrote: The two operands are 16 bit and the result is being saved into a larger type. Reduce the possibility of an overflow during multiplication by using the larger type as an operand. --- cpukit/score/src/objectextendinformation.c | 3 ++- 1 file changed, 2 ins

[PATCH] cpukit/score: Avoid overflow in multiplication

2024-01-16 Thread Kinsey Moore
The two operands are 16 bit and the result is being saved into a larger type. Reduce the possibility of an overflow during multiplication by using the larger type as an operand. --- cpukit/score/src/objectextendinformation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu