Ticket #1314 (assigned defect)

Opened 12 months ago

Last modified 12 months ago

http_request_parse: clear errno before str_to_off_t

Reported by: Safari Owned by: jan
Priority: normal Milestone: 1.5.0
Component: core Version: 1.4.15
Severity: trivial Keywords:
Cc: Blocked By:
Need User Feedback: no Blocking:

Description

if earlier syscall sets errno to ERANGE, http_request_parse does not detect between overflow and r == STR_OFF_T_MAX.

Attachments

http_request_parse-errno.patch (370 bytes) - added by Safari 12 months ago.

Change History

Changed 12 months ago by Safari

Changed 12 months ago by jan

  • status changed from new to assigned

don't strtol() and stroll() reset the errno themself ?

Changed 12 months ago by Safari

System calls do not modify errno on successful call.

Add/Change #1314 (http_request_parse: clear errno before str_to_off_t)

Author



Change Properties
<Author field>
Action
as assigned
 
Note: See TracTickets for help on using tickets.