Skip to content

Commit

Permalink
fix(ubus): stack overflow on ubus method ubus_method_handler
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Dec 4, 2023
1 parent 5c9b02c commit 4323a0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ubus.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ static int ubus_method_handler(struct ubus_context *ctx, struct ubus_object *obj
if (lua_isnumber(L, -1))
rv = lua_tonumber(L, -1);

lua_pop(L, 1);

return rv;
}

Expand Down

0 comments on commit 4323a0f

Please sign in to comment.