libsrtp: update to 1.5.0, switch to github repo
[feed/telephony.git] / libs / libsrtp / patches / 1005_fix_data_alignment.patch
1 Description: Fix data alignment
2 Author: "Martin Guy" <martinwguy@yahoo.it>
3 Origin: vendor, http://bugs.debian.org/470505#5
4 Bug: http://sourceforge.net/tracker/index.php?func=detail&aid=1912057&group_id=38894&atid=423799
5 Bug-Debian: http://bugs.debian.org/470505
6 Last-Update: 2011-05-30
7
8 --- a/test/srtp_driver.c
9 +++ b/test/srtp_driver.c
10 @@ -1207,14 +1207,14 @@ srtp_validate() {
11      0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 
12      0xab, 0xab, 0xab, 0xab
13    };
14 -  uint8_t srtp_plaintext[38] = {
15 +  uint8_t srtp_plaintext[38] __attribute__((aligned(4))) = {
16      0x80, 0x0f, 0x12, 0x34, 0xde, 0xca, 0xfb, 0xad, 
17      0xca, 0xfe, 0xba, 0xbe, 0xab, 0xab, 0xab, 0xab,
18      0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 
19      0xab, 0xab, 0xab, 0xab, 0x00, 0x00, 0x00, 0x00, 
20      0x00, 0x00, 0x00, 0x00, 0x00, 0x00
21    };
22 -  uint8_t srtp_ciphertext[38] = {
23 +  uint8_t srtp_ciphertext[38] __attribute__((aligned(4))) = {
24      0x80, 0x0f, 0x12, 0x34, 0xde, 0xca, 0xfb, 0xad, 
25      0xca, 0xfe, 0xba, 0xbe, 0x4e, 0x55, 0xdc, 0x4c,
26      0xe7, 0x99, 0x78, 0xd8, 0x8c, 0xa4, 0xd2, 0x15,