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 22 "main" : " index.js" ,
33 "name" : " libsession_util_nodejs" ,
44 "description" : " Wrappers for the Session Util Library" ,
5- "version" : " 0.4.7 " ,
5+ "version" : " 0.4.8 " ,
66 "license" : " GPL-3.0" ,
77 "author" : {
88 "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) {
314314 obj.Get (" joinedAtSeconds" ), " UserGroupsWrapper::setGroup joinedAtSeconds" )) {
315315 group_info.joined_at = *joinedAtSeconds;
316316 }
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+ }
317321
318322 if (auto invited = maybeNonemptyBoolean (
319323 obj.Get (" invitePending" ), " UserGroupsWrapper::setGroup invitePending" )) {
You can’t perform that action at this time.
0 commit comments