Skip to content

Conversation

@traeak
Copy link
Contributor

@traeak traeak commented Aug 22, 2023

Fixes: #10209

Refactor parent_select/consistenthash_config.cc loadConfigFile to use std::filesystem and std::string_view to remove coverity warn about stat() check independent of file open.

Plugin is defective and will be deprecated.

@traeak traeak force-pushed the coverity_issue_10209 branch from 00b2b52 to 48d42e6 Compare August 22, 2023 14:54
@traeak traeak force-pushed the coverity_issue_10209 branch from 48d42e6 to d05a1e4 Compare August 22, 2023 14:58
@traeak traeak self-assigned this Aug 22, 2023
@traeak traeak added this to the 10.0.0 milestone Aug 22, 2023
@apache apache deleted a comment from maskit Aug 22, 2023
@apache apache deleted a comment from traeak Aug 22, 2023
@bryancall bryancall requested a review from moonchen August 28, 2023 22:46
@moonchen
Copy link
Contributor

Plan is to merge this to fix the issue, then get rid of this plugin in the future.

@traeak traeak merged commit 3269bdc into apache:master Aug 29, 2023
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jun 3, 2024
* parent_select plugin: refactor to use std::filesystem and std::string_view for loadConfigFile (coverity issue apache#10209)

* remove excessive ifstream close

* consistenthash_config: don't assume string operations always return string_view

---------

Co-authored-by: Brian Olsen <bolsen@gmail.com>
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jun 3, 2024
* commit '01409a61bab49c81cf422cdb29a94dcd07bf3c37': (31 commits)
  cmake: add more executables (apache#10284)
  Fix a crash due to bad disks (apache#10287)
  ts_lua_transform: input_reader may be used uninitialized (apache#10297)
  CID 1508887 fix parent_select plugin stat Time of check. (apache#10260)
  Make remap API compatibility checks consistent. (apache#10253)
  remove deprecated 'NATIVE' AIO mode (apache#10269)
  Fix connect failure count (apache#10294)
  Add version range up to CMake 3.27 (apache#10259)
  untangle fds_limit global (apache#10288)
  replace net_config_poll_timeout with EThread::default_wait_interval_ms (apache#10289)
  suppress coverity false positive on race condition (apache#10278)
  initialize variable (apache#10277)
  Check the inet_pton return value for IP reputations (apache#10267)
  Fix missing virtual destructor. (apache#10293)
  tools/jtest: use @SWOC_LIBS@ (apache#10292)
  Fix m4 quoting on configure error messages. (apache#10258)
  build_h3_tools: explicitly chmod the destination directory (apache#10274)
  Fix CID 1508979: unchecked return value (apache#10281)
  Fix CID 1508970: Uninitialized scalar variable (apache#10282)
  Fix CID 1508992, 1508976, 1508972: uninitialized scalar variables (apache#10275)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CID 1508887: Time of check time of use

2 participants