Buggy code:
private msg ) { } protected void writeRDBNAM ( String rdbnam ) throws DRDAProtocolException { } private void initialize ( ) { } private void initializeForSession ( ) { } private void sessionInitialState ( ) throws Exception { } private void cleanUpAndCloseResultSet ( DRDAStatement stmt , SQLException sqle , int writerMark ) throws DRDAProtocolException { } private void processCommands ( ) throws DRDAProtocolException { } private void errorInChain ( SQLException e ) throws DRDAProtocolException { } private void exchangeServerAttributes ( ) throws DRDAProtocolException { } private boolean parseDRDAConnection ( ) throws DRDAProtocolException { } private void switchToUtf8 ( ) { } private void switchToEbcdic ( ) { } private void writeRDBfailure ( int codePoint ) throws DRDAProtocolException { } private int getRdbAccessErrorCodePoint ( ) { } private boolean isAuthenticationException ( SQLException sqlException ) { } private int verifyUserIdPassword ( ) throws DRDAProtocolException { } private int getConnFromDatabaseName ( ) throws DRDAProtocolException { } private void parseEXCSAT ( ) throws DRDAProtocolException { } private void parseEXCSAT2 ( ) throws DRDAProtocolException { } private void parseMGRLVLLS ( int time ) throws DRDAProtocolException { } private void writeEXCSATRD ( ) throws DRDAProtocolException { } private void writeMGRLEVELS ( ) throws DRDAProtocolException { } private int parseACCSEC ( ) throws DRDAProtocolException { } private Pkgnamcsn parseOPNQRY ( ) throws SQLException , DRDAProtocolException { } private void parseOPNQRYobjects ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private int parseOUTOVROPT ( ) throws DRDAProtocolException { } private int parseQRYBLKSZ ( ) throws DRDAProtocolException { } private int parseQRYROWSET ( int minVal ) throws DRDAProtocolException { } private int parseQRYCLSIMP ( ) throws DRDAProtocolException { } private int parseQRYCLSRLS ( ) throws DRDAProtocolException { } private void writeQRYPOPRM ( ) throws DRDAProtocolException { } private void writeQRYNOPRM ( int svrCod ) throws DRDAProtocolException { } private void writeOPNQFLRM ( SQLException e ) throws DRDAProtocolException { } private void writePKGNAMCSN ( byte [ ] pkgcnstkn ) throws DRDAProtocolException { } private void writePKGNAMCSN ( ) throws DRDAProtocolException { } private DRDAStatement parseCNTQRY ( ) throws SQLException , DRDAProtocolException { } private void skipRemainder ( boolean onlySkipSameIds ) throws DRDAProtocolException { } private void parseCNTQRYobjects ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void parseOUTOVR ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void writePBSD ( ) throws SQLException , DRDAProtocolException { } private void writeOPNQRYRM ( boolean isDssObject , DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void writeENDQRYRM ( int svrCod ) throws DRDAProtocolException { } private void writeABNUOWRM ( ) throws DRDAProtocolException { } private String parseRDBNAM ( ) throws DRDAProtocolException { } private void writeACCSECRD ( int securityCheckCode ) throws DRDAProtocolException { } private int parseSECCHK ( ) throws DRDAProtocolException { } private void writeSECCHKRM ( int securityCheckCode ) throws DRDAProtocolException { } private int svrcodFromSecchkcd ( int securityCheckCode ) { } private int parseACCRDB ( ) throws DRDAProtocolException { int codePoint ; int svrcod = 0 ; copyToRequired ( DRDAConnThread . ACCRDB_REQUIRED ) ; reader . markCollection ( ) ; codePoint = reader . getCodePoint ( ) ; while ( codePoint != ( - 1 ) ) { switch ( codePoint ) { case CodePoint . RDBACCCL : checkLength ( RDBACCCL , 2 ) ; int sqlam = reader . readNetworkShort ( ) ; if ( SanityManager . DEBUG ) trace ( ( "RDBACCCL<seq2seq4repair_space>=<seq2seq4repair_space>" + sqlam ) ) ; if ( sqlam != ( CodePoint . SQLAM ) ) invalidValue ( RDBACCCL ) ; removeFromRequired ( RDBACCCL ) ; break ; case CodePoint . CRRTKN : database . crrtkn = reader . readBytes ( ) ; if ( SanityManager . DEBUG ) trace ( ( "crrtkn<seq2seq4repair_space>" + ( convertToHexString ( database . crrtkn ) ) ) ) ; removeFromRequired ( CRRTKN ) ; int l = database . crrtkn . length ; if ( l > ( CodePoint . MAX_NAME ) ) tooBig ( CRRTKN ) ; if ( ( l < 9 ) || ( l > 23 ) ) invalidValue ( CRRTKN ) ; byte [ ] part1 = new byte [ l - 6 ] ; for ( int i = 0 ; i < ( part1 . length ) ; i ++ ) part1 [ i ] = database . crrtkn [ i ] ; long time = SignedBinary . getLong ( database . crrtkn , ( l - 8 ) , BIG_ENDIAN ) ; session . drdaID = ( ( ( ( reader . convertBytes ( part1 ) ) + time ) + ( DRDAConnThread . leftBrace ) ) + ( session . connNum ) ) + ( DRDAConnThread . rightBrace ) ; if ( SanityManager . DEBUG ) trace ( ( "******************************************drdaID<seq2seq4repair_space>is:<seq2seq4repair_space>" + ( session . drdaID ) ) ) ; database . setDrdaID ( session . drdaID ) ; break ; case CodePoint . RDBNAM : String dbname = parseRDBNAM ( ) ; if ( ( database ) != null ) { if ( ! ( database . getDatabaseName ( ) . equals ( dbname ) ) ) rdbnamMismatch ( ACCRDB ) ; } else { Database d = session . getDatabase ( dbname ) ; if ( d == null ) initializeDatabase ( dbname ) ; else { database = d ; ( database . accessCount ) ++ ; } } removeFromRequired ( RDBNAM ) ; break ; case CodePoint . PRDID : appRequester . setClientVersion ( reader . readString ( ) ) ; if ( SanityManager . DEBUG ) trace ( ( "prdId<seq2seq4repair_space>" + ( appRequester . prdid ) ) ) ; if ( ( appRequester . prdid . length ( ) ) > ( CodePoint . PRDID_MAX ) ) tooBig ( PRDID ) ; if ( ( ( ( appRequester . getClientType ( ) ) == ( appRequester . JCC_CLIENT ) ) && ( appRequester . greaterThanOrEqualTo ( 1 , 5 , 0 ) ) ) || ( ( appRequester . getClientType ( ) ) == ( appRequester . DNC_CLIENT ) ) ) { sendWarningsOnCNTQRY = true ; } else sendWarningsOnCNTQRY = false ; if ( ( ( appRequester . getClientType ( ) ) == ( appRequester . DNC_CLIENT ) ) && ( appRequester . greaterThanOrEqualTo ( 10 , 2 , 0 ) ) ) { diagnosticLevel = CodePoint . DIAGLVL1 ; } removeFromRequired ( PRDID ) ; break ; case CodePoint . TYPDEFNAM : setStmtOrDbByteOrder ( true , null , parseTYPDEFNAM ( ) ) ; removeFromRequired ( TYPDEFNAM ) ; break ; case CodePoint . TYPDEFOVR : parseTYPDEFOVR ( null ) ; removeFromRequired ( TYPDEFOVR ) ; break ; case CodePoint . RDBALWUPD : checkLength ( RDBALWUPD , 1 ) ; database . rdbAllowUpdates = readBoolean ( RDBALWUPD ) ; if ( SanityManager . DEBUG ) trace ( ( "rdbAllowUpdates<seq2seq4repair_space>=<seq2seq4repair_space>" + ( database . rdbAllowUpdates ) ) ) ; break ; case CodePoint . PRDDTA : if ( ( reader . getDdmLength ( ) ) > ( CodePoint . MAX_NAME ) ) tooBig ( PRDDTA ) ; reader . skipBytes ( ) ; break ; case CodePoint . TRGDFTRT : byte b = reader . readByte ( ) ; <START_BUG> if ( b == 241 ) <END_BUG>

Fix:
if ( b == ( ( byte ) ( 241 ) ) )