]> git.pld-linux.org Git - packages/mISDNuser.git/blob - array-bounds.patch
- build fixes for modern gcc and glibc
[packages/mISDNuser.git] / array-bounds.patch
1 --- mISDNuser-2.0.19/lib/layer3/q931.c~ 2014-10-20 14:18:55.000000000 +0200
2 +++ mISDNuser-2.0.19/lib/layer3/q931.c  2020-04-26 17:16:23.169108417 +0200
3 @@ -506,7 +506,7 @@
4  int
5  mi_encode_redirecting_nr(struct l3_msg *l3m, char *nr, int pres, unsigned int type, unsigned int plan, int reason)
6  {
7 -       unsigned char ie[24];
8 +       unsigned char ie[32];
9         int l;
10  
11         if (nr == NULL || *nr == 0) /* not provided */
12 @@ -537,7 +537,7 @@
13  int
14  mi_encode_redirection_nr(struct l3_msg *l3m, char *nr, int pres, unsigned int type, unsigned int plan)
15  {
16 -       unsigned char ie[24];
17 +       unsigned char ie[32];
18         int l;
19  
20         if (nr == NULL || *nr == 0) /* not provided */
21 --- mISDNuser-2.0.19/bridge/bridge.c.orig       2014-10-20 14:18:55.000000000 +0200
22 +++ mISDNuser-2.0.19/bridge/bridge.c    2020-04-26 17:27:38.799085748 +0200
23 @@ -147,7 +147,7 @@
24   */
25  static void ph_control(int sock, int c1, int c2)
26  {
27 -       unsigned char data[MISDN_HEADER_LEN+sizeof(int)+sizeof(int)];
28 +       unsigned char data[MISDN_HEADER_LEN+sizeof(unsigned long)*2];
29         struct mISDNhead *hh = (struct mISDNhead *)data;
30         int len;
31         unsigned long *d = (unsigned long *)(data + MISDN_HEADER_LEN);
This page took 0.028841 seconds and 3 git commands to generate.