You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "zwoop (via GitHub)" <gi...@apache.org> on 2023/07/13 17:51:43 UTC

[GitHub] [trafficserver] zwoop opened a new issue, #10026: CID 1513219: Null pointer dereferences

zwoop opened a new issue, #10026:
URL: https://github.com/apache/trafficserver/issues/10026

   ```
   *** CID 1513219:  Null pointer dereferences  (REVERSE_INULL)
   /src/traffic_cache_tool/[CacheScan.cc](http://cachescan.cc/): 357 in ct::CacheScan::check_url(swoc::_1_5_1::MemSpan<char> &, URLImpl *)()
   351         in_bound = true; // nullptr is valid
   352       } else if (mem.contains(const_cast<char *>(url->m_ptr_scheme))) {
   353         in_bound = true;
   354       }
   355     
   356       return in_bound && mem.contains(reinterpret_cast<char *>(url)) &&
      CID 1513219:  Null pointer dereferences  (REVERSE_INULL)
      Null-checking "url" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
   357              !(url == nullptr || url->m_length <= 0 || url->m_type != HDR_HEAP_OBJ_URL);
   358     }
   359     
   360     Errata
   361     CacheScan::get_alternates(const char *buf, int length, bool search)
   362     {
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] CID 1513219: Null pointer dereferences [trafficserver]

Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit closed issue #10026: CID 1513219:  Null pointer dereferences
URL: https://github.com/apache/trafficserver/issues/10026


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org