Remove no longer applying TODO.

This commit is contained in:
2019-03-31 20:31:21 +01:00
parent b36c664740
commit b255303607
2 changed files with 0 additions and 5 deletions

View File

@@ -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)
{ {

View File

@@ -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;