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

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Mon, 15 Apr 2013 01:43:28 -0000

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

Comment (by anevilyak):

 Replying to [comment:4 jessicah]:
 > Hmm, okay, I'll change it to strtoll, although the value is in 1MB
 increments... scary to imagine storage that large!

 If that's the case then how were you in fact observing an overflow? The
 original patch was a no-op since off_t is already 64-bit, so the cast from
 int to off_t was done by the compiler implicitly anyways.

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

Other related posts: