The following issues were found
src/third_party/unwind/dist/src/arm/Gresume.c
1 issues
Line: 56
Column: 15
CWE codes:
119
120
Suggestion:
Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length
regs[9] = uc->regs[14]; /* LR */
struct regs_overlay {
char x[sizeof(regs)];
};
__asm__ __volatile__ (
"ldmia %0, {r4-r12, lr}\n"
"mov sp, r12\n"
Reported by FlawFinder.
src/third_party/wiredtiger/test/3rdparty/testtools-0.9.34/testtools/tags.py
1 issues
Line: 6
Column: 1
"""Tag support."""
class TagContext(object):
"""A tag context."""
def __init__(self, parent=None):
"""Create a new TagContext.
Reported by Pylint.
src/third_party/unwind/dist/src/coredump/_UCD_find_proc_info.c
1 issues
Line: 139
Column: 15
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
if (!mem)
return -UNW_ENOMEM;
memcpy (mem, pi->unwind_info, pi->unwind_info_size);
pi->unwind_info = mem;
}
}
}
#endif
Reported by FlawFinder.
src/third_party/unwind/dist/src/coredump/_UPT_get_dyn_info_list_addr.c
1 issues
Line: 40
Column: 3
CWE codes:
119
120
Suggestion:
Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length
unsigned long lo, hi, off;
struct UPT_info *ui = arg;
struct map_iterator mi;
char path[PATH_MAX];
unw_dyn_info_t *di;
unw_word_t res;
int count = 0;
maps_init (&mi, ui->pid);
Reported by FlawFinder.
src/third_party/unwind/dist/src/dwarf/Gfde.c
1 issues
Line: 356
Column: 7
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
dci.fde_instr_start = addr;
dci.fde_instr_end = fde_end_addr;
memcpy (pi->unwind_info, &dci, sizeof (dci));
}
return 0;
}
Reported by FlawFinder.
src/third_party/unwind/dist/src/elfxx.h
1 issues
Line: 78
Column: 8
CWE codes:
362
struct stat stat;
int fd;
fd = open (path, O_RDONLY);
if (fd < 0)
return -1;
if (fstat (fd, &stat) < 0)
{
Reported by FlawFinder.
src/third_party/unwind/dist/src/ia64/Ginit.c
1 issues
Line: 237
Column: 11
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
else
{
ret = __uc_get_frs (uc, (reg - UNW_IA64_FR), 1, &fp_regval);
memcpy (val, &fp_regval, sizeof (*val));
}
break;
default:
ret = EINVAL;
Reported by FlawFinder.
src/third_party/unwind/dist/src/ia64/Gtables.c
1 issues
Line: 452
Column: 3
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
if ((ret = get_kernel_table (&kernel_table)) < 0)
return ret;
memcpy (di, &kernel_table, sizeof (*di));
return 0;
}
# endif /* !UNW_LOCAL_ONLY */
Reported by FlawFinder.
src/third_party/wiredtiger/test/3rdparty/testtools-0.9.34/testtools/_compat3x.py
1 issues
Line: 17
Column: 1
def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
"""Re-raise an exception received from sys.exc_info() or similar."""
raise exc_obj.with_traceback(exc_tb)
Reported by Pylint.
src/third_party/unwind/dist/tests/forker.c
1 issues
Line: 42
Column: 11
CWE codes:
190
Suggestion:
If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended)
long count;
pid_t pid;
count = atol (argv[1]);
program = argv[2];
child_argv = alloca ((argc - 1) * sizeof (char *));
for (i = 0; i < argc - 2; ++i)
child_argv[i] = argv[2 + i];
Reported by FlawFinder.