[haiku-bugs] Re: [Haiku] #9673: DriveSetup: integer overflow in slider for partition size

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Mon, 15 Apr 2013 00:47:32 -0000

#9673: DriveSetup: integer overflow in slider for partition size
---------------------------------------+----------------------------
   Reporter:  jessicah                 |      Owner:  stippi
       Type:  bug                      |     Status:  new
   Priority:  normal                   |  Milestone:  R1
  Component:  Applications/DriveSetup  |    Version:  R1/Development
 Resolution:                           |   Keywords:
 Blocked By:                           |   Blocking:
Has a Patch:  1                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by anevilyak):

 Wouldn't it make more sense to just replace the use of atoi() with
 strtoll()? The cast isn't going to solve the fact that atoi() isn't going
 to be able to parse that large of a value range and return a correct value
 to begin with.

--
Ticket URL: <http://dev.haiku-os.org/ticket/9673#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: