Program: 34742
Project: 34742
Buggy source:
/** 
 * Send an artificially created H2 request from a push_promise up to the WebContainer
 */
public void sendRequestToWc(FrameHeaders frame){
  if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
    Tr.entry(tc,"String_Node_Str");
  }
  if (null == frame) {
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
      Tr.debug(tc,"String_Node_Str");
    }
  }
 else {
    WsByteBufferPoolManager bufManager=HttpDispatcher.getBufferManager();
    WsByteBuffer buf=bufManager.allocate(frame.buildFrameForWrite().length);
    byte[] ba=frame.buildFrameForWrite();
    buf.put(ba);
    buf.flip();
    TCPReadRequestContext readi=h2HttpInboundLinkWrap.getConnectionContext().getReadInterface();
    readi.setBuffer(buf);
    currentFrame=frame;
    getHeadersFromFrame();
    setHeadersComplete();
    try {
      processCompleteHeaders(true);
    }
 catch (    CompressionException ce) {
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
        Tr.debug(tc,"String_Node_Str" + ce);
      }
      buf.release();
      currentFrame=new FrameRstStream(myID,Constants.CANCEL,false);
      try {
        processNextFrame(currentFrame,Constants.Direction.WRITING_OUT);
      }
 catch (      Http2Exception e) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
          Tr.debug(tc,"String_Node_Str" + e);
        }
      }
      currentFrame=null;
      muxLink.triggerStreamClose(this);
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
        Tr.exit(tc,"String_Node_Str" + myID);
      }
      return;
    }
    try {
      setReadyForRead();
    }
 catch (    ProtocolException e) {
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
        Tr.exit(tc,"String_Node_Str" + e);
      }
    }
  }
  if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
    Tr.exit(tc,"String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Send an artificially created H2 request from a push_promise up to the WebContainer
 */
public void sendRequestToWc(FrameHeaders frame){
  if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
    Tr.entry(tc,"String_Node_Str");
  }
  if (null == frame) {
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
      Tr.debug(tc,"String_Node_Str");
    }
  }
 else {
    WsByteBufferPoolManager bufManager=HttpDispatcher.getBufferManager();
    WsByteBuffer buf=bufManager.allocate(frame.buildFrameForWrite().length);
    byte[] ba=frame.buildFrameForWrite();
    buf.put(ba);
    buf.flip();
    TCPReadRequestContext readi=h2HttpInboundLinkWrap.getConnectionContext().getReadInterface();
    readi.setBuffer(buf);
    currentFrame=frame;
    getHeadersFromFrame();
    setHeadersComplete();
    try {
      processCompleteHeaders(true);
    }
 catch (    Http2Exception he) {
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
        Tr.debug(tc,"String_Node_Str" + he);
      }
      buf.release();
      currentFrame=new FrameRstStream(myID,Constants.CANCEL,false);
      try {
        processNextFrame(currentFrame,Constants.Direction.WRITING_OUT);
      }
 catch (      Http2Exception e) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
          Tr.debug(tc,"String_Node_Str" + e);
        }
      }
      currentFrame=null;
      muxLink.triggerStreamClose(this);
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
        Tr.exit(tc,"String_Node_Str" + myID);
      }
      return;
    }
    try {
      setReadyForRead();
    }
 catch (    ProtocolException e) {
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
        Tr.exit(tc,"String_Node_Str" + e);
      }
    }
  }
  if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
    Tr.exit(tc,"String_Node_Str");
  }
}