File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2
2
"main" : " index.js" ,
3
3
"name" : " libsession_util_nodejs" ,
4
4
"description" : " Wrappers for the Session Util Library" ,
5
- "version" : " 0.4.7 " ,
5
+ "version" : " 0.4.8 " ,
6
6
"license" : " GPL-3.0" ,
7
7
"author" : {
8
8
"name" : " Oxen Project" ,
Original file line number Diff line number Diff line change @@ -314,6 +314,10 @@ Napi::Value UserGroupsWrapper::setGroup(const Napi::CallbackInfo& info) {
314
314
obj.Get (" joinedAtSeconds" ), " UserGroupsWrapper::setGroup joinedAtSeconds" )) {
315
315
group_info.joined_at = *joinedAtSeconds;
316
316
}
317
+ // 1st Jan 2100. Probably an invalid timestamp.
318
+ if (group_info.joined_at > 4099680000 ) {
319
+ throw std::invalid_argument{" group.joined_at is too far in the future" };
320
+ }
317
321
318
322
if (auto invited = maybeNonemptyBoolean (
319
323
obj.Get (" invitePending" ), " UserGroupsWrapper::setGroup invitePending" )) {
You can’t perform that action at this time.
0 commit comments