Skip to content

Commit 348c9c9

Browse files
committed
v.1.07.5_RC4
1 parent 40c9f07 commit 348c9c9

File tree

23 files changed

+1481
-1221
lines changed

23 files changed

+1481
-1221
lines changed

INCHI-1-SRC/INCHI_API/libinchi/src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ target_sources(libinchi PRIVATE
116116
${P_BASE}/mol_fmt3.c
117117
${P_BASE}/mol_fmt4.c
118118
${P_BASE}/mol2atom.c
119+
${P_BASE}/permutation_util.h
120+
${P_BASE}/permutation_util.c
119121
${P_BASE}/readinch.c
120122
${P_BASE}/readinch.h
121123
${P_BASE}/runichi.c

INCHI-1-SRC/INCHI_BASE/src/ichican2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4601,7 +4601,7 @@ int CanonGraph( INCHI_CLOCK *ic,
46014601
{
46024602
*nLenCt = pzb_rho->lenCt - 1;
46034603
}
4604-
if (pCt && pzb_rho && (*nLenCt > 0))
4604+
if (pCt && pzb_rho && (*nLenCt > 0)) /* djb-rwth: GHI #164 fix */
46054605
{
46064606
memcpy(pCt, pzb_rho->Ctbl, *nLenCt * sizeof(pCt[0]));
46074607
}

INCHI-1-SRC/INCHI_BASE/src/ichicano.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2691,9 +2691,10 @@ VII. Optimize isotopic stereo descriptors (optimized)
26912691
inchi_free( pRankStack2[n] );
26922692
}
26932693
}
2694-
inchi_free( pRankStack2 );
26952694
}
26962695

2696+
inchi_free(pRankStack2); /* djb-rwth: fixing coverity CID #499631 */
2697+
26972698
pCS->NeighList = NULL; /* keep the pointer in pBCN->ftcn[bTaut].NeighList for further deallocation */
26982699
qfree( nAtomNumber );
26992700
qfree( nTempRank );

INCHI-1-SRC/INCHI_BASE/src/ichimain.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ typedef struct tagLine
6363
#define COMP_PREP_0_RECN 0x0008
6464
#define COMP_ORIG_1_MAIN 0x0010
6565
#define COMP_ORIG_1_RECN 0x0020
66-
/* Renumbering atoms stuff */
67-
#define PERMAXATOMS 32767
68-
#define BYTE(X) ((unsigned char *)(X))
69-
int rrand( int m );
70-
void shuffle( void *obj, size_t nmemb, size_t size );
7166

7267

7368
/* STRUCT_DATA */
@@ -505,7 +500,6 @@ int bIsStructChiral( PINChI2 *pINChI2[INCHI_NUM], int num_components[] );
505500
/* ORIG_ATOM_DATA */
506501

507502
int OrigAtData_Duplicate( ORIG_ATOM_DATA *new_orig_atom, ORIG_ATOM_DATA *orig_atom );
508-
void OrigAtData_Permute( ORIG_ATOM_DATA *permuted, ORIG_ATOM_DATA *saved, int *numbers );
509503

510504
int OrigAtData_RemoveAtom(ORIG_ATOM_DATA *orig_at_data, int iatom);
511505
int OrigAtData_AddSingleStereolessBond( int this_atom, int other_atom,

INCHI-1-SRC/INCHI_BASE/src/ichimak2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ int MakeHillFormula( U_CHAR *nAtom,
330330
mult = 0;
331331
bOvfl = 0;
332332
nPrevAtom = (U_CHAR) -2; /* non-existent number */
333+
memset(szElement, '\0', sizeof(szElement)); /* djb-rwth: fixing coverity CID #499542 */
333334

334335
if (num_C)
335336
{

0 commit comments

Comments
 (0)