Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 121
    • Issues 121
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

There will be a server upgrade attempt on July 6 2022 starting at around 18:00 CEST. Services will be down during this time. There is no estimate on how long this will take.

  • pikelang
  • pikepike
  • Issues
  • #885
Closed
Open
Created Dec 11, 2000 by Peter Bortas@zinoOwner

Streaming Gz module gives incorrect results

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=885

Reported by Fredrik Noring, Roxen Internet Software noring@roxen.com

The following code trigs a bug:

string data0 = ...; // 66560 characters. string data1 = ...; // 66560 characters.

   function gzd = Gz.deflate()->deflate;
   function gzi = Gz.inflate()->inflate;

   int main()
   {
     string packed = "";

     packed += gzd(data0, Gz.NO_FLUSH);
     packed += gzd(data1, Gz.NO_FLUSH);
     packed += gzd("", Gz.FINISH);

     return !(data0 + data1 == gzi(packed));
   }

The complete source code is available at:

Pike/7.1/src/modules/Gz/flushtest.pike

Assignee
Assign to
Time tracking