[
https://issues.apache.org/jira/browse/TS-4820?focusedWorklogId=28251&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-28251
]
ASF GitHub Bot logged work on TS-4820:
--------------------------------------
Author: ASF GitHub Bot
Created on: 07/Sep/16 01:00
Start Date: 07/Sep/16 01:00
Worklog Time Spent: 10m
Work Description: Github user atsci commented on the issue:
https://github.com/apache/trafficserver/pull/973
FreeBSD build *successful*! See
https://ci.trafficserver.apache.org/job/Github-FreeBSD/716/ for details.
Issue Time Tracking
-------------------
Worklog Id: (was: 28251)
Time Spent: 0.5h (was: 20m)
> ParseRules::ink_tolower_buffer seems to be broken
> -------------------------------------------------
>
> Key: TS-4820
> URL: https://issues.apache.org/jira/browse/TS-4820
> Project: Traffic Server
> Issue Type: Bug
> Reporter: Susan Hinrichs
> Assignee: Susan Hinrichs
> Fix For: 7.0.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> This function doesn't seem to be used.
> It tries to be clever about unrolling the character copy loop to do word
> aligned assignments. However, its calculation about the number of characters
> to assign to get the pointer to be word aligned is wrong (fpad).
> The assignment in the code is
> {code}
> uintptr_t fpad = 4 - ((uintptr_t)ptr & 3);
> {code}
> I think it should be
> {code}
> uintptr_t fpad = ((uintptr_t)ptr & 3);
> {code}
> I tried using this function while addressing the lower case cert name lookup
> bug, but it didn't work. It only copied the first 8 of 14 characters.
> I grepped the code base and it seems that this function is not used anywhere.
> I would suggest just removing the ink_tolower_buffer function. I think
> compilers are clever enough these days to do the unrolling if it makes sense.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)