]> git.kaiwu.me - haproxy.git/commitdiff
Revert "BUG: hlua: fix stack overflow in httpclient headers conversion"
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 8 Apr 2026 08:41:54 +0000 (10:41 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 8 Apr 2026 09:05:38 +0000 (11:05 +0200)
This reverts commit a03120e228abc654d1f0d5bcb0240c6972721735.

A WIP version of the patch was applied before the actual patch by
accident. The correct patch is 2db801c ("BUG/MINOR: hlua: fix stack
overflow in httpclient headers conversion")

src/hlua.c

index 956fd1fc6d7783b0f0ac377204115c47f1e5aaa6..c66849c48e8f4a7646504d399a753a8fe5d5bf55 100644 (file)
@@ -8074,11 +8074,6 @@ struct http_hdr *hlua_httpclient_table_to_hdrs(lua_State *L)
                                goto skip_headers;
                        }
 
-                       if (hdr_num >= global.tune.max_http_hdr) {
-                               lua_pop(L, 2);
-                               goto skip_headers;
-                       }
-
                        v = lua_tolstring(L, -1, &vlen);
                        value = ist2(v, vlen);
                        name = ist2(n, nlen);