Skip to content

Commit 8278ad8

Browse files
authored
[k2] fix UB in register_kphp_on_oom_callback (#1593)
1 parent d0cc4e2 commit 8278ad8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

runtime-light/stdlib/system/system-functions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ inline kphp::coro::task<> f$die(mixed v = 0) noexcept {
105105
template<typename F>
106106
bool f$register_kphp_on_oom_callback(F&& /*callback*/) {
107107
kphp::log::warning("called stub register_kphp_on_oom_callback");
108+
return true;
108109
}
109110

110111
template<typename F>

0 commit comments

Comments
 (0)