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 44444545        if : runner.os == 'Windows' 
4646
47-       - name : Setup node for windows 
48-         if : runner.os == 'Windows' 
49-         shell : bash 
50-         run : | 
51-           yarn global add node-gyp@latest 
52- 
5347      #  - name: sed it
5448      #    if: runner.os == 'Windows'
5549      #    shell: bash
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+         //  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+         }
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