Skip to content

[date] Update port to fix use-of-uninitialized-value #23637

@acgetchell

Description

@acgetchell

Describe the bug
The current port for [date] when running on MSAN produces:

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/home/travis/build/acgetchell/CDT-plusplus/build/src/cdt+0x642ce1) in date::get_tzdb_list()

This was fixed in:

HowardHinnant/date@a74eb1a

Please revise the port to include these changes.

Environment

  • OS: Ubuntu 20.04
  • Compiler: clang-13

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install date
  2. Run MSAN

Expected behavior
No uninitialized variable use.

Failure logs

https://app.travis-ci.com/github/acgetchell/CDT-plusplus/jobs/563927674#L1376

Additional context

To run MSAN in Travis, I use:

https://github.com/acgetchell/CDT-plusplus/blob/develop/cmake/Sanitizers.cmake#L69

And then build, e.g.:

https://github.com/acgetchell/CDT-plusplus/blob/develop/.travis.yml#L83

It would probably be pretty easy to translate to GHA, I just haven't done so.

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions