[
https://issues.apache.org/jira/browse/TS-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13869268#comment-13869268
]
xiongzongtao commented on TS-2439:
----------------------------------
Hi, Leif
I think
the writer intentionally arrange fields in ascending order in while loop,
but the code does not do as that
if some codes implicitly rely on this "ascending order", may cause problems
> next_slotnum is not recomputed
> -------------------------------
>
> Key: TS-2439
> URL: https://issues.apache.org/jira/browse/TS-2439
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Reporter: xiongzongtao
> Assignee: Leif Hedstrom
> Fix For: 4.2.0
>
> Attachments: ts_2439.diff
>
>
> in function mime_hdr_field_attach of file MIME.cc
> while (prev_slotnum < field_slotnum) // break if prev after field
> {
> if (next_dup == NULL)
> break; // no next dup, we're done
> if (next_slotnum > field_slotnum)
> break; // next dup is after us, we're done
> prev_dup = next_dup;
> prev_slotnum = next_slotnum;
> next_dup = prev_dup->m_next_dup;
> }
> in while loop above, next_slotnum is not recomputed.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)