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 Suren A. Chilingaryan

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.

comment:2 Changed 13 years ago by Matthias Vogelgesang

Resolution: fixed
Status: newclosed

Fixed long time ago (r123). However, it is also a bit strange from SiSo?'s side to define it differently on different systems.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthias Vogelgesang.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.