[haiku-bugs] Re: [Haiku] #6354: Forwarding a mail crashes app_server

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 27 Dec 2018 23:54:23 -0000

#6354: Forwarding a mail crashes app_server
----------------------------------+----------------------------
   Reporter:  humdinger           |      Owner:  mmlr
       Type:  bug                 |     Status:  in-progress
   Priority:  normal              |  Milestone:  R1
  Component:  Servers/app_server  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------
Changes (by mmlr):

 * owner:  axeld => mmlr
 * status:  new => in-progress


Comment:

 So numChars is over 500k in this case which clearly just overflows the
 stack. I've implemented a fix using BStackOrHeapArray, but looking through
 that file there's a lot of similar cases that need fixing and a lot of
 missing sanity checks of incoming values and error checks of allocations.
 It's somewhat surprising that such problems don't seem to happen more
 often.

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

Other related posts: