User: sparre  
  Date: 01/09/26 14:01:24

  Modified:    src/main/org/jboss/tm TxManager.java
  Log:
  Setting extremely high timeout values could lead to and undetected integer
  multiplication overflow and wrong timeout settings.
  
  Revision  Changes    Path
  1.33      +2 -2      jboss/src/main/org/jboss/tm/TxManager.java
  
  Index: TxManager.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/tm/TxManager.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- TxManager.java    2001/08/11 02:38:33     1.32
  +++ TxManager.java    2001/09/26 21:01:24     1.33
  @@ -35,7 +35,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Ole Husgaard</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
  - * @version $Revision: 1.32 $
  + * @version $Revision: 1.33 $
    */
   public class TxManager
      implements TransactionManager,
  @@ -311,7 +311,7 @@
       */
      public void setDefaultTransactionTimeout(int seconds)
      {
  -      timeOut = 1000 * seconds;
  +      timeOut = 1000L * seconds;
   
         if (debug) {
            log.debug("default tx timeout is now: " + seconds + "s");
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to