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

2024-01-22 Thread Gedare Bloom
On Wed, Jan 17, 2024 at 7:47 AM Sebastian Huber wrote: > > On 17.01.24 15:31, Kinsey Moore wrote: > > Change extend_count to uint32_t from uint16_t to avoid a possible > > premature integer overflow when it is later used for multiplication. > > Thanks, looks good. > I would have preferred a cast i

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

2024-01-17 Thread Sebastian Huber
On 17.01.24 15:31, Kinsey Moore wrote: Change extend_count to uint32_t from uint16_t to avoid a possible premature integer overflow when it is later used for multiplication. Thanks, looks good. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: se

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

2024-01-17 Thread Kinsey Moore
Change extend_count to uint32_t from uint16_t to avoid a possible premature integer overflow when it is later used for multiplication. --- cpukit/score/src/objectextendinformation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/src/objectextendinformation.c b/cp