Skip to content

Revert "utils: fix integer overflow in __calloc_a()"#45

Closed
AndyChiang888 wants to merge 1 commit into
openwrt:masterfrom
AndyChiang888:utils.c
Closed

Revert "utils: fix integer overflow in __calloc_a()"#45
AndyChiang888 wants to merge 1 commit into
openwrt:masterfrom
AndyChiang888:utils.c

Conversation

@AndyChiang888

Copy link
Copy Markdown

This reverts commit 9b48801.

[Symptoms]

  1. MediaTek Filogic Platform: When simultaneously accessing more than 15 URLs, uhttpd immediately enters a crash loop:
daemon.info: procd: Instance uhttpd::instance1 s in a crash loop 6 crashes, 8 seconds since last crash
  1. x86_64 Platform: Although it does not crash under high concurrency, the response time for requests is significantly prolonged, leading to a drastic drop in system throughput.

This reverts commit 9b48801.

[Symptoms]
1. MediaTek Filogic Platform: When simultaneously accessing more than 15 URLs, uhttpd immediately enters a crash loop:
```
daemon.info: procd: Instance uhttpd::instance1 s in a crash loop 6 crashes, 8 seconds since last crash
```
2. x86_64 Platform: Although it does not crash under high concurrency, the response time for requests is significantly prolonged, leading to a drastic drop in system throughput.

Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
@nbd168

nbd168 commented May 18, 2026

Copy link
Copy Markdown
Member

I don't see the bug in the commit that you're reverting. How sure are you that this commit is actually the root cause and the revert isn't just papering over another bug elsewhere?

@AndyChiang888

Copy link
Copy Markdown
Author

This is indeed a bug in uhttpd.
I will close this PR and then create a PR on uhttpd.

@AndyChiang888 AndyChiang888 deleted the utils.c branch May 18, 2026 09:15
@lorand-horvath

lorand-horvath commented May 18, 2026

Copy link
Copy Markdown

This is indeed a bug in uhttpd. I will close this PR and then create a PR on uhttpd.

@AndyChiang888 Also, please refer to the original issue github.com/openwrt/luci/issues/8629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants