forked from Imagelibrary/rtems
2000-11-28 Joel Sherrill <joel@OARcorp.com>
* src/imfs/memfile.c: Bug report from Sturniolo Jose <jsturnio@nec.com.ar> where NULL pointer was dereferenced.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2000-11-28 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* src/imfs/memfile.c: Bug report from Sturniolo Jose
|
||||||
|
<jsturnio@nec.com.ar> where NULL pointer was dereferenced.
|
||||||
|
|
||||||
2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
|
2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
|
||||||
|
|
||||||
* src/imfs/imfs_eval.c: Always return imaginary node at mount points.
|
* src/imfs/imfs_eval.c: Always return imaginary node at mount points.
|
||||||
|
|||||||
@@ -499,6 +499,8 @@ int IMFS_memfile_remove(
|
|||||||
if ( info->triply_indirect ) {
|
if ( info->triply_indirect ) {
|
||||||
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
|
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
|
||||||
p = (block_p *) info->triply_indirect[i];
|
p = (block_p *) info->triply_indirect[i];
|
||||||
|
if (!p) /* ensure we have a valid pointer */
|
||||||
|
break;
|
||||||
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
|
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
|
||||||
if ( p[j] ) {
|
if ( p[j] ) {
|
||||||
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
|
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2000-11-28 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* src/imfs/memfile.c: Bug report from Sturniolo Jose
|
||||||
|
<jsturnio@nec.com.ar> where NULL pointer was dereferenced.
|
||||||
|
|
||||||
2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
|
2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
|
||||||
|
|
||||||
* src/imfs/imfs_eval.c: Always return imaginary node at mount points.
|
* src/imfs/imfs_eval.c: Always return imaginary node at mount points.
|
||||||
|
|||||||
@@ -499,6 +499,8 @@ int IMFS_memfile_remove(
|
|||||||
if ( info->triply_indirect ) {
|
if ( info->triply_indirect ) {
|
||||||
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
|
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
|
||||||
p = (block_p *) info->triply_indirect[i];
|
p = (block_p *) info->triply_indirect[i];
|
||||||
|
if (!p) /* ensure we have a valid pointer */
|
||||||
|
break;
|
||||||
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
|
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
|
||||||
if ( p[j] ) {
|
if ( p[j] ) {
|
||||||
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
|
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2000-11-28 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* src/imfs/memfile.c: Bug report from Sturniolo Jose
|
||||||
|
<jsturnio@nec.com.ar> where NULL pointer was dereferenced.
|
||||||
|
|
||||||
2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
|
2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
|
||||||
|
|
||||||
* src/imfs/imfs_eval.c: Always return imaginary node at mount points.
|
* src/imfs/imfs_eval.c: Always return imaginary node at mount points.
|
||||||
|
|||||||
@@ -499,6 +499,8 @@ int IMFS_memfile_remove(
|
|||||||
if ( info->triply_indirect ) {
|
if ( info->triply_indirect ) {
|
||||||
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
|
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
|
||||||
p = (block_p *) info->triply_indirect[i];
|
p = (block_p *) info->triply_indirect[i];
|
||||||
|
if (!p) /* ensure we have a valid pointer */
|
||||||
|
break;
|
||||||
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
|
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
|
||||||
if ( p[j] ) {
|
if ( p[j] ) {
|
||||||
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
|
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
|
||||||
|
|||||||
Reference in New Issue
Block a user