hackedteam/fuzzer-android

View on GitHub

Showing 58 of 64 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

Severity: Major
Found in jpg_fuzzer_android/script/list.py and 1 other location - About 5 days to fix
jpg_fuzzer_android/script/ida_address.py on lines 0..75

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 506.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

Severity: Major
Found in jpg_fuzzer_android/script/ida_address.py and 1 other location - About 5 days to fix
jpg_fuzzer_android/script/list.py on lines 0..75

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 506.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/logfunctions/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/logi2crw/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/logblow_no_proto/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/functions_coverage_adobe/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/logblow/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/playback_thread_pause_plt/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/webkit_normalize/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/emunfccard/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/loguartrw/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/playback_thread_pause/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/functions_coverage_array/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_video/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

Severity: Major
Found in dbi/instruments/functions_coverage_video/genhijacks.py and 11 other locations - About 4 days to fix
dbi/instruments/emunfccard/genhijacks.py on lines 0..73
dbi/instruments/functions_coverage_adobe/genhijacks.py on lines 0..70
dbi/instruments/functions_coverage_array/genhijacks.py on lines 0..70
dbi/instruments/logblow/genhijacks.py on lines 0..70
dbi/instruments/logblow_no_proto/genhijacks.py on lines 0..70
dbi/instruments/logfunctions/genhijacks.py on lines 0..70
dbi/instruments/logi2crw/genhijacks.py on lines 0..73
dbi/instruments/loguartrw/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause/genhijacks.py on lines 0..70
dbi/instruments/playback_thread_pause_plt/genhijacks.py on lines 0..70
dbi/instruments/webkit_normalize/genhijacks.py on lines 0..70

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 497.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

dbi/instruments/logblow_no_proto/hijack_func/hooks_generator.py on lines 0..68

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 307.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

dbi/instruments/playback_thread_pause/hijack_func/hooks_generator.py on lines 0..68

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 307.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

      elif isPrimitive(t[y].value):        
        f.write("// pointer to primitive\n")
        f.write("if(write(nullfd, (void *)" + "(p" + str(k) + "->" + t[y+1].value[1:] + "), 4) >= 0) {\n")                
        f.write("xmlTextWriterStartElement(writer, \"POINTER_" + t[y+1].value[1:] + "\");\n")
        f.write("xmlTextWriterWriteBase64(writer, (char *) " + "(p" + str(k) + "->" + t[y+1].value[1:] + "), 0, 4);\n")
Severity: Major
Found in trinity-android19/parser/fuzz_generator.py and 1 other location - About 2 days to fix
trinity-android19/parser/fuzz_generator.py on lines 224..231

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 236.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

      if t[y].value == "void":
        f.write("// void pointer\n")
        f.write("if(write(nullfd, (void *)" + "(p" + str(k) + "->" + t[y+1].value[1:] + "), 128) >= 0) {\n")                
        f.write("xmlTextWriterStartElement(writer, \"POINTER_" + t[y+1].value[1:] + "\");\n")
        f.write("xmlTextWriterWriteBase64(writer, (char *) " + "(p" + str(k) + "->" + t[y+1].value[1:] + "), 0, 128);\n")
Severity: Major
Found in trinity-android19/parser/fuzz_generator.py and 1 other location - About 2 days to fix
trinity-android19/parser/fuzz_generator.py on lines 234..241

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 236.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

for i in struct_list:
    f.write("case STRUCT_ARG_" + i + ":\n")
    f.write("if(write(nullfd, (void *) arg_ptr, sizeof(" + i + "_s"  +")) < 0) {\n")
    f.write("xmlTextWriterWriteElement(writer, \"STRUCT_" + i + "\", \"unmapped\");\n")
    f.write("return;\n }\n\n")
Severity: Major
Found in trinity-android19/parser/gen_recursive.py and 1 other location - About 1 day to fix
trinity-android/gen_recursive.py on lines 62..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 183.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

for i in struct_list:
    f.write("case STRUCT_ARG_" + i + ":\n")
    f.write("if(write(nullfd, (void *) arg_ptr, sizeof(" + i + "_s"  +")) < 0) {\n")
    f.write("xmlTextWriterWriteElement(writer, \"STRUCT_" + i + "\", \"unmapped\");\n")
    f.write("return;\n }\n\n")
Severity: Major
Found in trinity-android/gen_recursive.py and 1 other location - About 1 day to fix
trinity-android19/parser/gen_recursive.py on lines 100..110

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 183.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language