Modify ↓
Ticket #29 (closed defect: fixed)
Undefined behavior in some plugins
| Reported by: | reddwarf@… | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | version 1.2 |
| Component: | filter | Version: | 1.2 |
| Keywords: | Cc: |
Description
The attached patch fixes warnings as "filter/curves/curves.c:459:29: warning: operation on 'offset' may be undefined"
Notice I didn't tried to understand the code. So I'm really unsure if
dst[offset] = (dst[offset++] >> 1) + 0x7F;
was expected to mean
dst[offset+1] = (dst[offset] >> 1) + 0x7F; offset++;
or
dst[offset] = (dst[offset] >> 1) + 0x7F; offset++;
Attachments
Change History
comment:1 Changed 8 months ago by dan@…
Fixed in git commit 8f809085bf1ca0f3d4a7b5bade3afe2367c3e9b2
Note: See
TracTickets for help on using
tickets.

