Modify ↓
Opened 14 years ago
Closed 13 years ago
#29 closed defect (fixed)
Invalid type of image_number within definition of uca_cam_grab_callback
Reported by: | Suren A. Chilingaryan | Owned by: | Matthias Vogelgesang |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | libuca | Version: | |
Keywords: | Cc: |
Description
You defining image_number as uint32_t. However, you accept this parameter from siso sdk which defines it as frameindex_t.
os_type.h states:
frameindex_t - Integer type for frame/image counts and subbuffer counts. This type represents a 32 bit number on 32 bit systems (WinXP /Vista 32, Linux x86_32) and a 64 bit number on 64 bit systems (WinXP / Vista 64, Linux amd64).
So, on 64 bit platforms the variable can fall out of the type range.
Attachments (0)
Change History (2)
comment:1 Changed 14 years ago by
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Another type mistmatch in uca_me4_grab: you defining "static int32_t last_frame", but Fg_getLastPicNumber* returns int. Please, check your code, I guess there are more places like that.