File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 44
44
45
45
if : runner.os == 'Windows'
46
46
47
- - name : Setup node for windows
48
- if : runner.os == 'Windows'
49
- shell : bash
50
- run : |
51
- yarn global add node-gyp@latest
52
-
53
47
# - name: sed it
54
48
# if: runner.os == 'Windows'
55
49
# shell: bash
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
+ // Probably an invalid timestamp.
318
+ if (group_info.joined_at > 9000000000 ) {
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