Commit graph

10 commits

Author SHA1 Message Date
Markus Scherer
b6dcc95d3c ICU-21833 remove redundant void parameter lists
See 
2023-03-02 09:31:57 -08:00
Andy Heninger
46861a5c78 ICU-21662 UVector Error Handling in Regex
Clean up some oversights from commit 0ec329c. This was triggered by fuzz testing finding
a memory leak with the original commit, see https://oss-fuzz.com/testcase-detail/4656781834452992

I was unable to replicate the fuzzing failure, but reviewing the nearby code showed
some likely problems.

In this commit,
- Fix UStack::pop() to not delete the popped element when a deleter function is present.
  This was a bug, but because there were no stacks with deleters, was not causing trouble.

- Change RegexCompile::compileSet() to delete the set if it cannot be added to the internal
  vector of sets. I suspect this is the cause of the fuzzing leak - 0ec329c changed the
  behavior of UVector in the presence of errors.

- Changed RegexCompile::fSetStack to use an object deleter function. This fixes the
  leak checking at the points new elements are pushed onto this stack.
2021-09-14 19:24:23 -07:00
Andy Heninger
242e02c388 ICU-12764 icu4c utf-8 source files, update Copyright notices.
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Michael Ow
61607c2773 ICU-12564 Update copyright notice in trunk
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126 ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f ICU-12564 Update copyright notice in ICU4C
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Markus Scherer
744d1f3a19 ICU-8617 move UHashTok into lower-level uelement.h (new) and rename to UElement to share with UVector
X-SVN-Rev: 30272
2011-07-04 23:51:56 +00:00
George Rhoten
c68fa87f5b ICU-4281 Reduce UStack dependencies
X-SVN-Rev: 16934
2004-12-09 06:39:49 +00:00
George Rhoten
00760ecdab ICU-3221 MSVC.NET combines static const char values in the same file.
Separate them into different files.

X-SVN-Rev: 12989
2003-08-29 21:07:49 +00:00
George Rhoten
dc703b5f1b ICU-3221 MSVC.NET combines static const char values in the same file.
Separate them into different files.

X-SVN-Rev: 12988
2003-08-29 21:05:48 +00:00