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

Commit bc310a9

Browse files
LaunchDarklyReleaseBothroederldbwoskow-ldeli-darklyLaunchDarklyCI
authored
prepare 2.9.2 release (#83)
## [2.9.2] - 2023-08-28 ### Fixed: - Fixed cause of potential crash when using test data feature. Thanks, @cochicde! --------- Co-authored-by: Harpo Roeder <hroeder@launchdarkly.com> Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com> Co-authored-by: Eli Bishop <eli@launchdarkly.com> Co-authored-by: LaunchDarklyCI <dev@launchdarkly.com> Co-authored-by: LaunchDarklyReleaseBot <launchdarklyreleasebot@launchdarkly.com> Co-authored-by: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com> Co-authored-by: Ember Stevens <ember.stevens@launchdarkly.com> Co-authored-by: ember-stevens <79482775+ember-stevens@users.noreply.github.com> Co-authored-by: Casey Waldren <cwaldren@launchdarkly.com> Co-authored-by: Gavin Whelan <gwhelan@launchdarkly.com> Co-authored-by: Ben Levy <benjaminlevy007@gmail.com> Co-authored-by: ld-repository-standards[bot] <113625520+ld-repository-standards[bot]@users.noreply.github.com> Co-authored-by: Kane Parkinson <93555788+kparkinson-ld@users.noreply.github.com> Co-authored-by: Louis Chan <lchan@launchdarkly.com> Co-authored-by: Louis Chan <91093020+louis-launchdarkly@users.noreply.github.com>
1 parent 128f670 commit bc310a9

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Repository Maintainers
2+
* @launchdarkly/team-sdk

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For using LaunchDarkly in _client-side_ C/C++ applications, refer to our [client
88

99
## LaunchDarkly overview
1010

11-
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!
11+
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!
1212

1313
[![Twitter Follow](https://img.shields.io/twitter/follow/launchdarkly.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/intent/follow?screen_name=launchdarkly)
1414

src/integrations/test_data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ LDi_buildTargetJSON(struct LDFlagBuilderTarget *target) {
587587

588588
if(!(users = LDi_buildUsersJSON(target->users))) {
589589
LDJSONFree(res);
590+
return NULL;
590591
}
591592

592593
if(!LDObjectSetKey(res, "values", users)) {
@@ -1068,4 +1069,3 @@ LDFlagRuleBuilderThenReturnBoolean(struct LDFlagRuleBuilder *ruleBuilder, LDBool
10681069
LDFlagRuleBuilderThenReturn(ruleBuilder, variationForBoolean(value));
10691070
return LDBooleanTrue;
10701071
}
1071-

tests/test-test-data.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,3 +383,11 @@ TEST_F(TestDataFixture, TestVariationForAllUsers) {
383383
ASSERT_EQ(LDBooleanTrue, result);
384384
}
385385
}
386+
387+
TEST_F(TestDataFixture, TestFlagNULLUserKey) {
388+
struct LDFlagBuilder *flag = LDTestDataFlag(td, "flag1");
389+
LDFlagBuilderVariationForUser(flag, NULL, 1);
390+
ASSERT_EQ(LDTestDataUpdate(td, flag), LDBooleanFalse);
391+
392+
LDFlagBuilderFree(flag);
393+
}

0 commit comments

Comments
 (0)