mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Remove no longer applying TODO.
This commit is contained in:
@@ -46,7 +46,6 @@ int close(void *context)
|
|||||||
|
|
||||||
dicformatContext *ctx = context;
|
dicformatContext *ctx = context;
|
||||||
|
|
||||||
// TODO: Cast this field without casting the whole structure, as this can buffer overflow
|
|
||||||
// Not a libdicformat context
|
// Not a libdicformat context
|
||||||
if(ctx->magic != DIC_MAGIC)
|
if(ctx->magic != DIC_MAGIC)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ int32_t read_media_tag(void *context, uint8_t *data, int32_t tag, uint32_t *leng
|
|||||||
|
|
||||||
ctx = context;
|
ctx = context;
|
||||||
|
|
||||||
// TODO: Cast this field without casting the whole structure, as this can buffer overflow
|
|
||||||
// Not a libdicformat context
|
// Not a libdicformat context
|
||||||
if(ctx->magic != DIC_MAGIC)
|
if(ctx->magic != DIC_MAGIC)
|
||||||
return DICF_ERROR_NOT_DICFORMAT;
|
return DICF_ERROR_NOT_DICFORMAT;
|
||||||
@@ -88,7 +87,6 @@ int32_t read_sector(void *context, uint64_t sectorAddress, uint8_t *data, uint32
|
|||||||
|
|
||||||
ctx = context;
|
ctx = context;
|
||||||
|
|
||||||
// TODO: Cast this field without casting the whole structure, as this can buffer overflow
|
|
||||||
// Not a libdicformat context
|
// Not a libdicformat context
|
||||||
if(ctx->magic != DIC_MAGIC)
|
if(ctx->magic != DIC_MAGIC)
|
||||||
return DICF_ERROR_NOT_DICFORMAT;
|
return DICF_ERROR_NOT_DICFORMAT;
|
||||||
@@ -166,7 +164,6 @@ int32_t read_track_sector(void *context, uint8_t *data, uint64_t sectorAddress,
|
|||||||
|
|
||||||
ctx = context;
|
ctx = context;
|
||||||
|
|
||||||
// TODO: Cast this field without casting the whole structure, as this can buffer overflow
|
|
||||||
// Not a libdicformat context
|
// Not a libdicformat context
|
||||||
if(ctx->magic != DIC_MAGIC)
|
if(ctx->magic != DIC_MAGIC)
|
||||||
return DICF_ERROR_NOT_DICFORMAT;
|
return DICF_ERROR_NOT_DICFORMAT;
|
||||||
@@ -201,7 +198,6 @@ int32_t read_sector_long(void *context, uint8_t *data, uint64_t sectorAddress, u
|
|||||||
|
|
||||||
ctx = context;
|
ctx = context;
|
||||||
|
|
||||||
// TODO: Cast this field without casting the whole structure, as this can buffer overflow
|
|
||||||
// Not a libdicformat context
|
// Not a libdicformat context
|
||||||
if(ctx->magic != DIC_MAGIC)
|
if(ctx->magic != DIC_MAGIC)
|
||||||
return DICF_ERROR_NOT_DICFORMAT;
|
return DICF_ERROR_NOT_DICFORMAT;
|
||||||
|
|||||||
Reference in New Issue
Block a user