Skip to content

Conversation

@masaori335
Copy link
Contributor

Fix #8936.

I'm not familiar with range request handling code, but HttpSM has the nullptr check of cache_info.object_read in many places. It looks like the HttpSM::parse_range_and_compare lacks the check.

  • e.g. the caller of HttpSM::parse_range_and_compare has one.

if (t_state.cache_info.object_read != nullptr) {

/cc @elsloo and @cmcfarlen

@masaori335 masaori335 added this to the 10.0.0 milestone Jul 1, 2022
@masaori335 masaori335 self-assigned this Jul 1, 2022
@masaori335 masaori335 merged commit b2cef8b into apache:master Jul 5, 2022
zwoop pushed a commit that referenced this pull request Jul 6, 2022
@zwoop
Copy link
Contributor

zwoop commented Jul 6, 2022

Cherry-picked to v9.2.x
Cherry-picked to v9.2.x

@zwoop zwoop modified the milestones: 10.0.0, 9.2.0 Jul 6, 2022
masaori335 added a commit to masaori335/trafficserver that referenced this pull request Feb 21, 2023
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Feb 21, 2023
* asf/9.2.x:
  Updated ChangeLog
  trim white spaces before and after the equal sign (apache#8638)
  Fixes compacting spaces in S3 auth plugin (apache#8579)
  Fixed issues when compiling with -Og (apache#8665)
  Update lua plugin examples (apache#8646)
  Additional helper functions for request transform (apache#8631)
  Move ChangeLog and README.md to the lib/fastlz/ (apache#8629)
  Remove unused functions/definitions from ink_defs (apache#8714)
  Stop ATS when a global lua script fails to load (apache#8671)
  Change DNS retries to be a static (requires restart) config value (apache#8724)
  add log format for whether origin TLS connection resumed an existing TLS session (apache#8745)
  Update location for core rule set in modsecurity example (apache#8924)
  Remove unnecessary use of a memory arena when logging. (apache#8925)
  Add docs for remap_stats plugin (apache#8927)
  Allows errors from plugin initialization to bubble up (apache#8926)
  proxy_serve_stale: Test updates (apache#8928)
  Make clang-format not modify ink_autoconf.h.in and ink_autoconf.h (apache#8935)
  Fix clang-format installation with multiple threads (apache#8931)
  Add nullptr check of HTTPInfo (apache#8937)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash on HttpSM::parse_range_and_compare

3 participants