[OpenSIPS-Devel] [OpenSIPS/opensips] d36fa2: Accept single \r as EOH in multipart

2020-09-02 Thread Zero King
  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d36fa2b152afb9f08288bb928ef693662b54969d
  
https://github.com/OpenSIPS/opensips/commit/d36fa2b152afb9f08288bb928ef693662b54969d
  Author: Zero King 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M parser/parse_body.c

  Log Message:
  ---
  Accept single \r as EOH in multipart

This completes commit 3ec9d1b25430715f2b800c455c8518104a243f49.

(cherry picked from commit f5d1b55aa213e448f2716751227234e073277855)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] e78b27: Accept single \r as EOH in multipart

2020-09-02 Thread Zero King
  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e78b270261719dcbdd0d679b7d82a78f9efb84b9
  
https://github.com/OpenSIPS/opensips/commit/e78b270261719dcbdd0d679b7d82a78f9efb84b9
  Author: Zero King 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M parser/parse_body.c

  Log Message:
  ---
  Accept single \r as EOH in multipart

This completes commit 3ec9d1b25430715f2b800c455c8518104a243f49.

(cherry picked from commit f5d1b55aa213e448f2716751227234e073277855)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] 98f4c5: Accept single \r as EOH in multipart

2020-09-02 Thread Zero King
  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 98f4c5e34757df89bcbdfa58450dbe20003482b8
  
https://github.com/OpenSIPS/opensips/commit/98f4c5e34757df89bcbdfa58450dbe20003482b8
  Author: Zero King 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M parser/parse_body.c

  Log Message:
  ---
  Accept single \r as EOH in multipart

This completes commit 3ec9d1b25430715f2b800c455c8518104a243f49.

(cherry picked from commit f5d1b55aa213e448f2716751227234e073277855)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] f5d1b5: Accept single \r as EOH in multipart

2020-09-02 Thread Liviu Chircu
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f5d1b55aa213e448f2716751227234e073277855
  
https://github.com/OpenSIPS/opensips/commit/f5d1b55aa213e448f2716751227234e073277855
  Author: Zero King 
  Date:   2020-08-27 (Thu, 27 Aug 2020)

  Changed paths:
M parser/parse_body.c

  Log Message:
  ---
  Accept single \r as EOH in multipart

This completes commit 3ec9d1b25430715f2b800c455c8518104a243f49.


  Commit: 3af502dc4f045815a8a225b21dc77c5488bba2fc
  
https://github.com/OpenSIPS/opensips/commit/3af502dc4f045815a8a225b21dc77c5488bba2fc
  Author: Liviu Chircu 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M parser/parse_body.c

  Log Message:
  ---
  Merge pull request #2229 from l2dy/parser-r

Accept single \r as EOH in multipart


Compare: 
https://github.com/OpenSIPS/opensips/compare/7c19af348ee7...3af502dc4f04

___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] d3d160: usrloc: Update doxygen comment about packing get_a...

2020-09-02 Thread Walter Doekes
  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d3d160bab47962520f6b013ace29ef5f5247657c
  
https://github.com/OpenSIPS/opensips/commit/d3d160bab47962520f6b013ace29ef5f5247657c
  Author: Walter Doekes 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/usrloc/dlist.c

  Log Message:
  ---
  usrloc: Update doxygen comment about packing get_all_ucontacts

(cherry picked from commit fc1c3ec32fa285e90cea457096f557e1088b1031)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] dd3db5: usrloc: Update doxygen comment about packing get_a...

2020-09-02 Thread Walter Doekes
  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: dd3db539bbe0ff98d53ece86a0f06eb1c427f8f1
  
https://github.com/OpenSIPS/opensips/commit/dd3db539bbe0ff98d53ece86a0f06eb1c427f8f1
  Author: Walter Doekes 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/usrloc/dlist.c

  Log Message:
  ---
  usrloc: Update doxygen comment about packing get_all_ucontacts

(cherry picked from commit fc1c3ec32fa285e90cea457096f557e1088b1031)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] c2e824: usrloc: Update doxygen comment about packing get_a...

2020-09-02 Thread Walter Doekes
  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c2e8248de7cedec8a8542abd20762cb46a0a8711
  
https://github.com/OpenSIPS/opensips/commit/c2e8248de7cedec8a8542abd20762cb46a0a8711
  Author: Walter Doekes 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/usrloc/dlist.c

  Log Message:
  ---
  usrloc: Update doxygen comment about packing get_all_ucontacts

(cherry picked from commit fc1c3ec32fa285e90cea457096f557e1088b1031)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] fc1c3e: usrloc: Update doxygen comment about packing get_a...

2020-09-02 Thread Liviu Chircu
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: fc1c3ec32fa285e90cea457096f557e1088b1031
  
https://github.com/OpenSIPS/opensips/commit/fc1c3ec32fa285e90cea457096f557e1088b1031
  Author: Walter Doekes 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/usrloc/dlist.c

  Log Message:
  ---
  usrloc: Update doxygen comment about packing get_all_ucontacts


  Commit: 7c19af348ee77b6c06ae12bd55ad2d2bc53087fb
  
https://github.com/OpenSIPS/opensips/commit/7c19af348ee77b6c06ae12bd55ad2d2bc53087fb
  Author: Liviu Chircu 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/usrloc/dlist.c

  Log Message:
  ---
  Merge pull request #2237 from wdoekes/wjd-fix-comment

usrloc: Update doxygen comment about packing get_all_ucontacts


Compare: 
https://github.com/OpenSIPS/opensips/compare/4d81a7f55441...7c19af348ee7

___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] df67ba: Fix next_hop crash (seen in nathelper nh_timer) du...

2020-09-02 Thread Walter Doekes
  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: df67bac58b260ec426c945c58859978a78c6b67d
  
https://github.com/OpenSIPS/opensips/commit/df67bac58b260ec426c945c58859978a78c6b67d
  Author: Walter Doekes 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/usrloc/dlist.c

  Log Message:
  ---
  Fix next_hop crash (seen in nathelper nh_timer) due to reading reused mem

Problem:

- get_domain_db_ucontacts (through get_domain_ucontacts) was handing out
  (next_hop) pointers to memory that was unused. This resulted in a
  crash when this memory was reused before the invalid pointer was
  reused.

Relevant issues and commits:

- #1652 [OpenSIPS crashes since of child that serves rtpproxy]
- e162f5f10 [fix 1652: usrloc: make next_hop point within the shared buffer]
- #1710 [nathelper next_hop off by one for usrloc path]
- 0300eb1d5 [fix 1710 / revert 1652: usrloc: fix next hop compute for ...]

That is: e162f5f10 fixes this exact problem in get_domain_db_ucontacts, in
get_domain_mem_ucontacts and in get_domain_cdb_ucontacts (cdb_pack_ping_data).

But in 0300eb1d5 it is reverted for only get_domain_db_ucontacts.

This fix:

- Rewrites the fix for get_domain_db_ucontacts and
  get_domain_cdb_ucontacts, making it less fragile/bug-prone.
- Adds comments about fragility to get_domain_mem_ucontacts
- Fixed unaligned memcpy that might affect non-intel CPUs:
  `((struct proxy_l *)cp)->name.s = next_hop_host`

Bug reported and fix tested by Jasper Hafkenscheid @hafkensite (VoIPGRID).

(cherry picked from commit 5a6b3abe41a2eaed961a530675f6441a692e8640)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] b261b6: Fix next_hop crash (seen in nathelper nh_timer) du...

2020-09-02 Thread Walter Doekes
  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b261b675bffebf0fd3b77503d53da13ce3b6a2c8
  
https://github.com/OpenSIPS/opensips/commit/b261b675bffebf0fd3b77503d53da13ce3b6a2c8
  Author: Walter Doekes 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/usrloc/dlist.c

  Log Message:
  ---
  Fix next_hop crash (seen in nathelper nh_timer) due to reading reused mem

Problem:

- get_domain_db_ucontacts (through get_domain_ucontacts) was handing out
  (next_hop) pointers to memory that was unused. This resulted in a
  crash when this memory was reused before the invalid pointer was
  reused.

Relevant issues and commits:

- #1652 [OpenSIPS crashes since of child that serves rtpproxy]
- e162f5f10 [fix 1652: usrloc: make next_hop point within the shared buffer]
- #1710 [nathelper next_hop off by one for usrloc path]
- 0300eb1d5 [fix 1710 / revert 1652: usrloc: fix next hop compute for ...]

That is: e162f5f10 fixes this exact problem in get_domain_db_ucontacts, in
get_domain_mem_ucontacts and in get_domain_cdb_ucontacts (cdb_pack_ping_data).

But in 0300eb1d5 it is reverted for only get_domain_db_ucontacts.

This fix:

- Rewrites the fix for get_domain_db_ucontacts and
  get_domain_cdb_ucontacts, making it less fragile/bug-prone.
- Adds comments about fragility to get_domain_mem_ucontacts
- Fixed unaligned memcpy that might affect non-intel CPUs:
  `((struct proxy_l *)cp)->name.s = next_hop_host`

Bug reported and fix tested by Jasper Hafkenscheid @hafkensite (VoIPGRID).

(cherry picked from commit 5a6b3abe41a2eaed961a530675f6441a692e8640)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] da4884: Fix next_hop crash (seen in nathelper nh_timer) du...

2020-09-02 Thread Walter Doekes
  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: da488403c71b3effb994c7e95310f059fa36ff2c
  
https://github.com/OpenSIPS/opensips/commit/da488403c71b3effb994c7e95310f059fa36ff2c
  Author: Walter Doekes 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/usrloc/dlist.c

  Log Message:
  ---
  Fix next_hop crash (seen in nathelper nh_timer) due to reading reused mem

Problem:

- get_domain_db_ucontacts (through get_domain_ucontacts) was handing out
  (next_hop) pointers to memory that was unused. This resulted in a
  crash when this memory was reused before the invalid pointer was
  reused.

Relevant issues and commits:

- #1652 [OpenSIPS crashes since of child that serves rtpproxy]
- e162f5f10 [fix 1652: usrloc: make next_hop point within the shared buffer]
- #1710 [nathelper next_hop off by one for usrloc path]
- 0300eb1d5 [fix 1710 / revert 1652: usrloc: fix next hop compute for ...]

That is: e162f5f10 fixes this exact problem in get_domain_db_ucontacts, in
get_domain_mem_ucontacts and in get_domain_cdb_ucontacts (cdb_pack_ping_data).

But in 0300eb1d5 it is reverted for only get_domain_db_ucontacts.

This fix:

- Rewrites the fix for get_domain_db_ucontacts and
  get_domain_cdb_ucontacts, making it less fragile/bug-prone.
- Adds comments about fragility to get_domain_mem_ucontacts
- Fixed unaligned memcpy that might affect non-intel CPUs:
  `((struct proxy_l *)cp)->name.s = next_hop_host`

Bug reported and fix tested by Jasper Hafkenscheid @hafkensite (VoIPGRID).

(cherry picked from commit 5a6b3abe41a2eaed961a530675f6441a692e8640)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] 5a6b3a: Fix next_hop crash (seen in nathelper nh_timer) du...

2020-09-02 Thread Liviu Chircu
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5a6b3abe41a2eaed961a530675f6441a692e8640
  
https://github.com/OpenSIPS/opensips/commit/5a6b3abe41a2eaed961a530675f6441a692e8640
  Author: Walter Doekes 
  Date:   2020-08-31 (Mon, 31 Aug 2020)

  Changed paths:
M modules/usrloc/dlist.c

  Log Message:
  ---
  Fix next_hop crash (seen in nathelper nh_timer) due to reading reused mem

Problem:

- get_domain_db_ucontacts (through get_domain_ucontacts) was handing out
  (next_hop) pointers to memory that was unused. This resulted in a
  crash when this memory was reused before the invalid pointer was
  reused.

Relevant issues and commits:

- #1652 [OpenSIPS crashes since of child that serves rtpproxy]
- e162f5f10 [fix 1652: usrloc: make next_hop point within the shared buffer]
- #1710 [nathelper next_hop off by one for usrloc path]
- 0300eb1d5 [fix 1710 / revert 1652: usrloc: fix next hop compute for ...]

That is: e162f5f10 fixes this exact problem in get_domain_db_ucontacts, in
get_domain_mem_ucontacts and in get_domain_cdb_ucontacts (cdb_pack_ping_data).

But in 0300eb1d5 it is reverted for only get_domain_db_ucontacts.

This fix:

- Rewrites the fix for get_domain_db_ucontacts and
  get_domain_cdb_ucontacts, making it less fragile/bug-prone.
- Adds comments about fragility to get_domain_mem_ucontacts
- Fixed unaligned memcpy that might affect non-intel CPUs:
  `((struct proxy_l *)cp)->name.s = next_hop_host`

Bug reported and fix tested by Jasper Hafkenscheid @hafkensite (VoIPGRID).


  Commit: 4d81a7f55441b4a9c8833e7769b4e445cb2f5d05
  
https://github.com/OpenSIPS/opensips/commit/4d81a7f55441b4a9c8833e7769b4e445cb2f5d05
  Author: Liviu Chircu 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/usrloc/dlist.c

  Log Message:
  ---
  Merge pull request #2233 from wdoekes/wjd-fix-next_hop-reading-freed-mem

Fix next_hop crash (seen in nathelper nh_timer) due to reading reused mem


Compare: 
https://github.com/OpenSIPS/opensips/compare/5ec53788c776...4d81a7f55441

___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] 5ec537: [permissions] Fixed mem leak on pattern field

2020-09-02 Thread Bogdan Andrei IANCU
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5ec53788c776b55908657c7891f0b3ac831e5560
  
https://github.com/OpenSIPS/opensips/commit/5ec53788c776b55908657c7891f0b3ac831e5560
  Author: Bogdan-Andrei Iancu 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/permissions/hash.c

  Log Message:
  ---
  [permissions] Fixed mem leak on pattern field

Closes #2197

(cherry picked from commit d6f3424d1fe71de94a545a36d0e14fbd9ecd3b3f)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] e41ca7: [permissions] Fixed mem leak on pattern field

2020-09-02 Thread Bogdan Andrei IANCU
  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e41ca7596ba657d86b91a62b6d82236e297ec3dd
  
https://github.com/OpenSIPS/opensips/commit/e41ca7596ba657d86b91a62b6d82236e297ec3dd
  Author: Bogdan-Andrei Iancu 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/permissions/hash.c

  Log Message:
  ---
  [permissions] Fixed mem leak on pattern field

Closes #2197

(cherry picked from commit d6f3424d1fe71de94a545a36d0e14fbd9ecd3b3f)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] ac3e6d: [permissions] Fixed mem leak on pattern field

2020-09-02 Thread Bogdan Andrei IANCU
  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ac3e6d3a510b379f0c2d698fc1c029c8843d8593
  
https://github.com/OpenSIPS/opensips/commit/ac3e6d3a510b379f0c2d698fc1c029c8843d8593
  Author: Bogdan-Andrei Iancu 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/permissions/hash.c

  Log Message:
  ---
  [permissions] Fixed mem leak on pattern field

Closes #2197

(cherry picked from commit d6f3424d1fe71de94a545a36d0e14fbd9ecd3b3f)



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] d6f342: [permissions] Fixed mem leak on pattern field

2020-09-02 Thread Bogdan Andrei IANCU
  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d6f3424d1fe71de94a545a36d0e14fbd9ecd3b3f
  
https://github.com/OpenSIPS/opensips/commit/d6f3424d1fe71de94a545a36d0e14fbd9ecd3b3f
  Author: Bogdan-Andrei Iancu 
  Date:   2020-09-02 (Wed, 02 Sep 2020)

  Changed paths:
M modules/permissions/hash.c

  Log Message:
  ---
  [permissions] Fixed mem leak on pattern field

Closes #2197



___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel