mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] [bug #4076] out-of-bound array or string access


From: nobody
Subject: [Mldonkey-bugs] [bug #4076] out-of-bound array or string access
Date: Mon, 17 Nov 2003 08:51:30 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1

=================== BUG #4076: LATEST MODIFICATIONS ==================
http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=4076&group_id=1409

Changes by:  <address@hidden>
Date: Mon 11/17/03 at 13:51 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
                  CC |                           | bug1




=================== BUG #4076: FULL BUG SNAPSHOT ===================


Submitted by: None                    Project: mldonkey, a free e-Donkey client
Submitted on: Mon 06/23/03 at 22:25
Category:  HTTP interface             Severity:  5 - Major                  
Bug Group:  None                      Resolution:  None                     
Assigned to:  None                    Status:  Open                         
Release:  2.00                        Release:  2.5.3                       
Platform Version:  Linux i386-i686    Binaries Origin:  Downloaded from Savannah

Summary:  out-of-bound array or string access

Original Submission:  My Browser is showing this if I click on search results:

<!--

var mOvrClass='';

function mOvr(src,clrOver) {

 if (clrOver == undefined) {var clrOver='mOvr1'};

 mOvrClass = src.className;

 src.className = clrOver + ' ' + mOvrClass + ' ' + clrOver; 

}

function mOut(src) {

 src.className=mOvrClass;

}

function mSub(target,cmd) {

 if (target != "") {

        if (cmd=="kill") {

                if (confirm("Are you sure?")) {

                top[target].location.href="submit?q=" + cmd;

            }

        } else {

     top[target].location.href="submit?q=" + cmd;

        }

 } else {

 location.href="submit?q=" + cmd;

 }               

}

var _tabLast=null;

function _rObj (s,ar) {

 this.s = s;

 this.ar = ar;

}

function _tabCreateArray(obj,st){

        var tb=obj.parentNode.parentNode;

        var rw=obj.parentNode.parentNode.rows;

        var _nRows=rw.length;

        var _tabS=new Array(_nRows-1);

        var _nCells = rw.item(0).cells.length;

        for(var i=1;i<_nRows;i++){

                var _raw = rw.item(i).cells.item(obj.cellIndex).innerHTML;

                if (st==1) {

                        _raw = _raw.replace((new RegExp('\(','gi')), '');

                   if (_raw.indexOf(":") != -1) { _raw = _raw.substring(2,99); }

                 if (_raw.search(new RegExp("[TGMk]","i"))) {

                  if (_raw.indexOf("T") != -1) { _raw = parseFloat(_raw) * 1024 
* 1024 * 1024 * 1024; } 

                  else {

                        if (_raw.indexOf("G") != -1) { _raw = parseFloat(_raw) 
* 1024 * 1024 * 1024; } 

                        else {

                                 if (_raw.indexOf("M") != -1) { _raw = 
parseFloat(_raw) * 1024 * 1024; } 

                                 else {

                                        if (_raw.indexOf("k") != -1) { _raw = 
parseFloat(_raw) * 1024; }

                                 }

                        }

              }

                }}

                        _tabS[i-1]= new _rObj(_raw,rw.item(i).cloneNode(true));

        }

        if (st==1) { _tabS.sort(_cmpFloat); }

        else { _tabS.sort(_cmpTxt); }

        if (!_tabMode) {_tabS.reverse()}                        

        for(var i=0;i<_nRows-1;i++){

                        var tr = _tabS[i].ar.cloneNode(true);

                        var oChild=tb.rows.item(i+1);

                        if (i % 2 == 0) { tr.className = 'dl-1'; } 

                               else { tr.className = 'dl-2'; }

                        tb.replaceChild(tr,oChild);

        }



}

function _cmpTxt(a,b) {

        if (_tabMode) {

                if (a.s=="") { if (b.s !="") { return 1;} }

                if (b.s=="") { if (a.s !="") { return -1;} }

        }

        if (a.s.toUpperCase() < b.s.toUpperCase()) {return -1;}

        if (a.s.toUpperCase() > b.s.toUpperCase()) {return 1;}

        return 0;

}

function _cmpFloat(a,b) {

        if (!_tabMode) {

                if (a.s=="") { if (b.s !="") { return -1;} }

                if (b.s=="") { if (a.s !="") { return 1;} }

        }

        if (isNaN(parseFloat(a.s))) {return 1;}

        if (isNaN(parseFloat(b.s))) {return -1;}

        return (parseFloat(b.s) - parseFloat(a.s));

}

function _tabSort(obj,st){

        if (_tabLast==obj) {_tabMode=!(_tabMode);} 

        else {_tabMode=true;}

        _tabCreateArray(obj,st);

        _tabLast=obj;

        return _tabMode;

}

function _cmdLine(){

top.fstatus.document.open();

top.fstatus.document.clear();

top.fstatus.document.writeln("<html><head>");

top.fstatus.document.writeln("<link href='h.css' rel='stylesheet' 
type='text/css'>");

top.fstatus.document.writeln("</head><body><center><table width=99% border=0 
cellspacing=0 cellpadding=0>");

top.fstatus.document.writeln("<form action=submit target=output 
name=cmdFormular> " );

top.fstatus.document.writeln("<tr><td width=100% nowrap>");

top.fstatus.document.writeln(" <input class='txt' style='width: 99%; height: 
20px; font-size: 12px;'"); 

top.fstatus.document.writeln(" type=text name=q value=''> </td><td width=1>");

top.fstatus.document.writeln("  <input class='but' style='color: #FFF; 
font-weight: 600; height: 20px; font-size: 10px;'");

top.fstatus.document.writeln("type=submit value=Execute></td></form>");

top.fstatus.document.writeln("</tr></table></body></html>");

top.fstatus.document.close();

}

//-->

  

Exception Invalid_argument("out-of-bound array or string access")





----

This is happening everytime a search is successful. If a search is not 
successful the page is displayed normal.



No Followups Have Been Posted


CC List
*******

CC Address                          | Comment
------------------------------------+-----------------------------
bug1                                | search result



No files currently attached


For detailed info, follow this link:
http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=4076&group_id=1409

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]