User Tools

Site Tools


programming:bash:overflow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programming:bash:overflow [2022/03/31 07:16] – [Overflow] ateixeiraprogramming:bash:overflow [2022/03/31 15:07] (current) – [Interesting fact :] ateixeira
Line 31: Line 31:
      
      
-Output will be:+==== Output will be : ====
  
   65536   65536
Line 48: Line 48:
   9223372036854775908           #String   9223372036854775908           #String
   -9223372036854775707          #INT overflow   -9223372036854775707          #INT overflow
 +
 +
 +==== Interesting fact : ====
 +
 +> At the end, we set a variable bigger than the MAX limit and increment X (in this case X=1). The variable is at first stocked as a STR but when we force it to increment by X, we see that bash will compensate and output the MIN limit incremented by X.
  
programming/bash/overflow.1648710993.txt.gz · Last modified: 2022/03/31 07:16 by ateixeira