#19 setquota overflows when parsing large quota values

closed-fixed
nobody
None
5
2011-01-11
2008-12-17
Anonymous
No

When using setquota to manipulate quotas where the quota values exceed max long they are getting silently truncated by the strtol function.

This patch switches to the strtoll function and changes the return value for parse_num to long long from long so that it returns the correct value.

Discussion

  • Nobody/Anonymous

    Patch to fix setquota overflow.

     
  • Clark Rawlins

    Clark Rawlins - 2008-12-17

    I should have logged in before adding the patch
    You can contact me if you need further information about the patch.

    clark.rawlins@escient.com

     
  • Jan Kara

    Jan Kara - 2011-01-11

    Thanks for the patch. I'm sorry for replying after such a long time but I was not watching this tracker. The issue has been already fixed in the mean time.

     
  • Jan Kara

    Jan Kara - 2011-01-11
    • status: open --> closed-fixed
     

Anonymous
Anonymous

Cancel  Add attachments