Skip to content

Division by zero on small files (UID too large?) #324

@bjackman

Description

@bjackman

Using Makeself version 2.5.0:

/tmp/ms  
❯❯  echo "echo foo" > run.sh

/tmp/ms  
❯❯  chmod +x run.sh 

/tmp/ms  
❯❯  ./run.sh 
foo

/tmp/ms  
❯❯  makeself . run.run "run" "./run.sh"
Header is 714 lines long

About to compress 8 KB of data...
Adding files to archive named "run.run"...
a ./run.shbsdtar: ./run.sh: Numeric user ID too large

CRC: 1837495207
MD5: 7c560c71742f4fa9533dfb1088632ea1

Self-extractable archive "run.run" successfully created.

/tmp/ms  
❯❯  ./run.run 
Verifying archive integrity...     0% expr: division by zero
./run.run: line 137: test: -lt: unary operator expected
 100%   MD5 checksums are OK. All good.
Uncompressing run     0% expr: division by zero
./run.run: line 137: test: -lt: unary operator expected
 100%  
./run.run: line 701: ./run.sh: No such file or directory

I'm not sure if that "Numeric user ID too large" warning is related, it might always have been there - I don't have logs from an older version of makeself to compare unfortunately. My UID is 729974 for what that's worth - I assume this is much bigger than you'd usually encounter on a plain old local Unix system but this is on a fancy work system with PAM magic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions