Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | risky code string [strlen(string) - 1] | ||
---|---|---|---|
Product: | porting | Reporter: | mmeeks <mmeeks> |
Component: | code | Assignee: | AOO issues mailing list <issues> |
Status: | CONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | gang65, issues |
Version: | current | ||
Target Milestone: | 4.x | ||
Hardware: | PC | ||
OS: | Linux, all | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- | ||
Issue Depends on: | 18813 | ||
Issue Blocks: |
Description
mmeeks
2003-03-17 10:50:37 UTC
mh->obr: can you please have a look to that ? Hi Michael, thanks for catching these issues. Unfortunatly I won't have time to fix them until 1.1 beta2, so I have to retarget this issue to 2.0 due to a missing 1.1 rc target. The profile code is on the top of the list of deprecated API, and I hope to get completly rid of it until 2.0. But to be on the safe side, we should look at these places for RC. Forgot to accept this issue. It doesn't look as if we were allowed to remove this code from libsal for OOo 2.0. RE-targeting to OOo Later. obr @ hro -> please use the first chance to get rid of this code .. Accepted kso->mmeeks: Would you mind to submit a patch for this? set target 3.x How do you want resolve this bug? On what you want replace "string [strlen(string) - 1]" code? > How do you want resolve this bug ? In a way that removes the potential crashers here :-) > On what you want replace "string [strlen(string) - 1]" code? Well - presumably some lpsz_lastChar(string) macro that does: (strlen (string) < 1 ? '0' : string[strlen(string) - 1]) or somesuch. Reset assigne to the default "issues@openoffice.apache.org". |