baresip / re

Generic library for real-time communications with async IO support
BSD 3-Clause "New" or "Revised" License
132 stars 81 forks source link

main: Array out of bounds access #1183

Closed jobo-zt closed 1 day ago

jobo-zt commented 2 weeks ago

Testing in Windows restund/turn: allocation 0x1717ca8 destroyed. Triggered under this condition

Array out of bounds access.

main.c function fd_poll() "if (!fhs || !fhs->fh)" If the expression holds, it enters an infinite loop

jobo-zt commented 2 weeks ago

I fixed it

jobo-zt commented 2 weeks ago

pr: https://github.com/baresip/re/pull/1184

sreimers commented 2 weeks ago

Can you try: https://github.com/baresip/re/pull/1185

jobo-zt commented 1 week ago

I will do.

jobo-zt commented 1 week ago

Can you try: #1185 Triggered an exception: read access permission conflict. FD_SETSIZE=1024 image

Not included https://github.com/baresip/re/pull/1184 add DEBUG_WARNING("i:%d\n", i); //debug

jobo-zt commented 1 week ago

included https://github.com/baresip/re/pull/1184 not Triggered an exception. please review it. https://github.com/baresip/restund/issues/6