You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "maskit (via GitHub)" <gi...@apache.org> on 2023/09/01 20:14:31 UTC

[GitHub] [trafficserver] maskit opened a new issue, #10333: CID 1518611: Side effect in assertion

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

   ```
   98  void
    99  write(TSVConn vc, TSCont contp)
   100  {
   101    TSReleaseAssert(this->vio == nullptr);
      	
   CID 1518611 (#1 of 1): Side effect in assertion (ASSERT_SIDE_EFFECT)
   assignment_where_comparison_intended: Assignment this->iobuf = tsapi::c::TSIOBufferCreate() has a side effect. This code will work differently in a non-debug build.
      	Did you intend to use a comparison (==) instead?
   102    TSReleaseAssert((this->iobuf = TSIOBufferCreate()));
        	CID 1518597: Side effect in assertion (ASSERT_SIDE_EFFECT) [[select issue](https://scan6.scan.coverity.com/defectInstanceId=34751325&fileInstanceId=163647460&mergedDefectId=1518597)]
   103    TSReleaseAssert((this->reader = TSIOBufferReaderAlloc(this->iobuf)));
   104
   105    this->vio = TSVConnWrite(vc, contp, this->reader, INT64_MAX);
   106  }
   107};
   ```


-- 
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


[GitHub] [trafficserver] bryancall closed issue #10333: CID 1518611: Side effect in assertion

Posted by "bryancall (via GitHub)" <gi...@apache.org>.
bryancall closed issue #10333: CID 1518611: Side effect in assertion
URL: https://github.com/apache/trafficserver/issues/10333


-- 
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


[GitHub] [trafficserver] serrislew closed issue #10333: CID 1518611: Side effect in assertion

Posted by "serrislew (via GitHub)" <gi...@apache.org>.
serrislew closed issue #10333: CID 1518611: Side effect in assertion
URL: https://github.com/apache/trafficserver/issues/10333


-- 
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


[GitHub] [trafficserver] serrislew commented on issue #10333: CID 1518611: Side effect in assertion

Posted by "serrislew (via GitHub)" <gi...@apache.org>.
serrislew commented on issue #10333:
URL: https://github.com/apache/trafficserver/issues/10333#issuecomment-1710898158

   `Ignore`: `TSReleaseAssert` is used in both debug and non-debug builds


-- 
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


[GitHub] [trafficserver] melinck commented on issue #10333: CID 1518611: Side effect in assertion

Posted by "melinck (via GitHub)" <gi...@apache.org>.
melinck commented on issue #10333:
URL: https://github.com/apache/trafficserver/issues/10333#issuecomment-1711291091

   Lov3


-- 
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