mldonkey-bugs
[Top][All Lists]
Advanced

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

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


From: spiralvoice
Subject: [Mldonkey-bugs] [bugs #4076] out-of-bound array or string access
Date: Tue, 02 Dec 2003 14:15:50 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.5) Gecko/20031007

This mail is an automated notification from the bugs tracker
 of the project: mldonkey, a free e-Donkey client.

/**************************************************************************/
[bugs #4076] Latest Modifications:

Changes by: 
                spiralvoice <address@hidden>
'Date: 
                Tue 12/02/2003 at 20:15 (Europe/Berlin)

            What     | Removed                   | Added
---------------------------------------------------------------------------
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
This patch report is old. If the bug still exists in current

versions please post a new bug report - spiralvoice






/**************************************************************************/
[bugs #4076] Full Item Snapshot:

URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=4076>
Project: mldonkey, a free e-Donkey client
Submitted by: 0
On: Tue 06/24/2003 at 00:25

Category:  HTTP interface
Severity:  5 - Average
Item Group:  None
Resolution:  None
Assigned to:  None
Status:  Closed
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.

Follow-up Comments
------------------


-------------------------------------------------------
Date: Tue 12/02/2003 at 20:15       By: spiralvoice
This patch report is old. If the bug still exists in current

versions please post a new bug report - spiralvoice




CC List
-------

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









For detailed info, follow this link:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=4076>

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





reply via email to

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