Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit fc40a79

Browse files
authored
1.0.2 (#10)
1 parent 804850b commit fc40a79

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to the LaunchDarkly C server-side SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [1.0.2] - 2019-07-26
6+
### Fixed
7+
- Undefined behavior associated with branching on an uninitialized variable when parsing server time headers
8+
59
## [1.0.1] - 2019-07-11
610
### Fixed
711
- Updated CMAKE header search to include `/usr/local/include` for OSX Mojave

include/launchdarkly/api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/** @brief The current SDK version string. This value adheres to semantic
99
* versioning and is included in the HTTP user agent sent to LaunchDarkly.
1010
*/
11-
#define LD_SDK_VERSION "1.0.1"
11+
#define LD_SDK_VERSION "1.0.2"
1212

1313
#ifdef __cplusplus
1414
extern "C" {

src/events.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,8 @@ LDi_onHeader(const char *buffer, const size_t size,
10661066

10671067
client = context;
10681068

1069+
memset(&tm, 0, sizeof(struct tm));
1070+
10691071
/* ensures we do not segfault if not terminated */
10701072
if (!(headerend = strnchr(buffer, '\r', total))) {
10711073
LD_LOG(LD_LOG_ERROR, "failed to find end of header");

0 commit comments

Comments
 (0)