Skip to content

Commit 7b20672

Browse files
Andrei Sidorovfilonenko-mikhail
Andrei Sidorov
authored andcommitted
patch: fix use after free in rdhttp.c
1 parent b892514 commit 7b20672

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ if(STATIC_BUILD)
6060
COMMAND patch -d <SOURCE_DIR> -p1 -i "${PATCHES_DIR}/librdkafka-tarantool-security-52.patch"
6161
COMMAND patch -d <SOURCE_DIR> -p1 -i "${PATCHES_DIR}/librdkafka-tarantool-security-55.patch"
6262
COMMAND patch -d <SOURCE_DIR> -p1 -i "${PATCHES_DIR}/librdkafka-tarantool-security-70.patch"
63+
COMMAND patch -d <SOURCE_DIR> -p1 -i "${PATCHES_DIR}/librdkafka-tarantool-security-36.patch"
6364
)
6465

6566
add_library(librdkafka_static INTERFACE)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/rdhttp.c b/src/rdhttp.c
2+
index dca6c6f8..5a290c5b 100644
3+
--- a/src/rdhttp.c
4+
+++ b/src/rdhttp.c
5+
@@ -345,6 +345,7 @@ rd_http_error_t *rd_http_post_expect_json(rd_kafka_t *rk,
6+
7+
/* Retry */
8+
rd_http_error_destroy(herr);
9+
+ herr = 0;
10+
rd_usleep(retry_ms * 1000 * (i + 1), &rk->rk_terminate);
11+
}
12+

0 commit comments

Comments
 (0)