[Molds-dev] [molds] #30258: Buffer overrun in BFGS::UpdateHessian

アーカイブの一覧に戻る

SourceForge Ticket System norep****@sourc*****
2012年 12月 5日 (水) 00:04:22 JST


#30258: Buffer overrun in BFGS::UpdateHessian

  Open Date: 2012-12-04 22:26
Last Update: 2012-12-05 00:04

URL for this Ticket:
    http://sourceforge.jp/ticket/browse.php?group_id=6231&tid=30258
RSS feed for this Ticket:
    http://sourceforge.jp/ticket/ticket_rss.php?group_id=6231&tid=30258

---------------------------------------------------------------------

Last Changes/Comment for this Ticket:
2012-12-05 00:04 Update by: ktns

Comment:

The code below reproduces this error.

This bug should be related to the byte alignment problem.

{{{

#include <cblas.h>
#include <stdlib.h>


int main(void){
	double *x = malloc(sizeof(double)*5);
	double *A = malloc(sizeof(double)*25);
	for(int i = 0; i<5 ; i++){
		x[i]=i;
	}

	for(int i = 0; i<25; i++){
		A[i]=0;
	}

	cblas_dsyr(CblasRowMajor, CblasUpper,
			5, 1, x, 1, A, 5);

	free(x);
	free(A);
	return 0;
}

}}}


---------------------------------------------------------------------
Ticket Status:

      Reporter: ktns
         Owner: (未割り当て)
          Type: バグ
        Status: オープン
      Priority: 6
     MileStone: (未割り当て)
     Component: (未割り当て)
      Severity: 6
    Resolution: なし
---------------------------------------------------------------------

Ticket details:

Buffer overrun error occurs if the dimension of the Hessian is odd number.

This bug is found on the binary built with OpenBLAS.

-- 
This is Ticket on Project MolDS.
MolDS Project hosted on SourceForge.JP.

Project URL: http://sourceforge.jp/projects/molds
SourceForge.JP: http://sourceforge.jp

URL for this Ticket:
    http://sourceforge.jp/ticket/browse.php?group_id=6231&tid=30258
RSS feed for this Ticket:
    http://sourceforge.jp/ticket/ticket_rss.php?group_id=6231&tid=30258




MolDS-dev メーリングリストの案内
アーカイブの一覧に戻る