Support #252

Implement proper alignment handling for UBF

Added by Madars Vitolins 2 months ago. Updated 16 days ago.

Status:NewStart date:11/20/2017
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

We get bus-error on sparc platform. For un-aligned data access.

History

#1 Updated by Madars Vitolins about 2 months ago

One way to perform this would:

- the BFLDID should consist of two integers.
- in header before ending BFLDID we shall have "long" field to pull in 64bit alignment.
- All fields in UBF, shall be in size of modulus 8
- The long fields and double fields will have BFLDID, integer (for 32bit adding to address) and the long/float by it self.

All this above will ensure 8 byte alignment.

#2 Updated by Madars Vitolins about 2 months ago

Another option BFLDID use as 64bit long. And align all fields to 8.
For user api keep origianl BFLDID as 32bit, but internally cast it to 64bit...

So this will ensure all alignment to 8 bytes.

Also available in: Atom PDF