[haiku-bugs] Re: [Haiku] #10909: [easy] strtol doesn't handle overflow properly

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 07 Feb 2019 07:27:08 -0000

#10909: [easy] strtol doesn't handle overflow properly
----------------------------+----------------------------
   Reporter:  pulkomandy    |      Owner:  nobody
       Type:  bug           |     Status:  new
   Priority:  normal        |  Milestone:  R1
  Component:  System/POSIX  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by pulkomandy):

 int and long int are the same on 32-bit Haiku. No undefined behavior here.
 You can add the include if you want.

 The function should not return 0, but LONG_MAX. Does it?

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/10909#comment:8>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: