Test failure on PowerPC
Bug #1047460 reported by
Keith Harry
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
rohc | Status tracked in Rohc-main | |||||
1.3.x |
Won't Fix
|
High
|
Didier Barvaux | |||
1.4.x |
Won't Fix
|
High
|
Didier Barvaux | |||
Rohc-main |
Fix Released
|
High
|
Didier Barvaux |
Bug Description
Library version 1.4.1
Cross compiled for ppc_85xx
I have a simple test application that compresses some IPv4/UDP packets and then decompresses them. When the application is run on a powerpc platform the decompress will get CRC errors for some of the packets.
It appears that this is an endian issue in c_generic.c where there are a couple of places that declare an id as a unsigned int but treat it as a short for a memcpy which results in zeros being copied instead of the desired value.
I've attached the patch that makes my test application run without errors.
Related branches
To post a comment you must log in.
Hi,
Thank for your bug report, and for the patch!
I prefer using uint16_t instead of unsigned short, so I modified your patch a little bit. Could you please confirm me that your application runs without error with this new patch?
Version 1.3.3 is also affected (same code as 1.4.1), but it seems that trunk is not. Could you please test the trunk on your PowerPC 85xx board? If you do not known how to retrieve trunk sources, see http:// rohc-lib. org/wiki/ doku.php? id=library- hacking# get_source_ code_with_ bazaar
Regards,
Didier