This issue is generated by Vulcan for commit: 18ecc77
Coverage: 70.98 percent
Click here for a list of target sources
include/internal/chewing-private.h
src/chewingutil.c
There is(are) 1/17 failed test(s)
Click here for the failed test commands
- [FAILED] bash -c "declare -x ISOLATED="15"; ctest --output-on-failure --tests-regex test-bopomofo --test-dir build"
Clicking on the link, you take the page with code highlighted.
There are a lot of the suspicious code snippets and show 5 among them.
Recommend that split your tests or adde new tests.
Click here for FL information
Suspicious score: 1.00
|
symbol_type = SYMBOL_CHOICE_INSERT; |
Suspicious score: 1.00
|
int SymbolInput( int key, ChewingData *pgdata ) |
Suspicious score: 1.00
|
if ( isprint( (char) key ) && /* other character was ignored */ |
Suspicious score: 1.00
|
(pgdata->chiSymbolBufLen < MAX_PHONE_SEQ_LEN) ) { /* protect the buffer */ |
Suspicious score: 1.00
|
assert( pgdata->chiSymbolCursor <= pgdata->chiSymbolBufLen ); |
6 patch(es) generaetd by vulcan
plausible patch diff info
--- __backup0 2022-12-21 01:37:11.505448528 +0000
+++ src/chewingutil.c 2022-12-21 02:30:12.410965833 +0000
@@ -540,7 +540,8 @@
uint16_t bufPhoneSeq[ MAX_PHONE_SEQ_LEN + 1 ];
char bufWordSeq[ MAX_PHONE_SEQ_LEN * MAX_UTF8_SIZE + 1 ];
- throwEnd = CountReleaseNum( pgdata );
+ {
+}
pgo->nCommitStr = throwEnd;
if ( throwEnd ) {
--- __backup0 2022-12-21 01:37:11.505448528 +0000
+++ src/chewingutil.c 2022-12-21 02:30:12.402965666 +0000
@@ -540,7 +540,8 @@
uint16_t bufPhoneSeq[ MAX_PHONE_SEQ_LEN + 1 ];
char bufWordSeq[ MAX_PHONE_SEQ_LEN * MAX_UTF8_SIZE + 1 ];
- throwEnd = CountReleaseNum( pgdata );
+ throwEnd += CountReleaseNum(pgdata);
+
pgo->nCommitStr = throwEnd;
if ( throwEnd ) {
--- __backup0 2022-12-21 01:37:11.505448528 +0000
+++ src/chewingutil.c 2022-12-21 02:30:12.402965666 +0000
@@ -540,7 +540,8 @@
uint16_t bufPhoneSeq[ MAX_PHONE_SEQ_LEN + 1 ];
char bufWordSeq[ MAX_PHONE_SEQ_LEN * MAX_UTF8_SIZE + 1 ];
- throwEnd = CountReleaseNum( pgdata );
+ throwEnd -= CountReleaseNum(pgdata);
+
pgo->nCommitStr = throwEnd;
if ( throwEnd ) {
--- __backup0 2022-12-21 01:37:11.505448528 +0000
+++ src/chewingutil.c 2022-12-21 02:30:12.410965833 +0000
@@ -542,7 +542,8 @@
throwEnd = CountReleaseNum( pgdata );
- pgo->nCommitStr = throwEnd;
+ {
+}rowEnd;
if ( throwEnd ) {
/*
* count how many chinese words in "chiSymbolBuf[ 0 .. (throwEnd - 1)]"
--- __backup0 2022-12-21 01:37:11.505448528 +0000
+++ src/chewingutil.c 2022-12-21 02:30:12.406965749 +0000
@@ -542,7 +542,8 @@
throwEnd = CountReleaseNum( pgdata );
- pgo->nCommitStr = throwEnd;
+ pgo->nCommitStr += throwEnd;
+rowEnd;
if ( throwEnd ) {
/*
* count how many chinese words in "chiSymbolBuf[ 0 .. (throwEnd - 1)]"
--- __backup0 2022-12-21 01:37:11.505448528 +0000
+++ src/chewingutil.c 2022-12-21 02:30:12.406965749 +0000
@@ -542,7 +542,8 @@
throwEnd = CountReleaseNum( pgdata );
- pgo->nCommitStr = throwEnd;
+ pgo->nCommitStr -= throwEnd;
+rowEnd;
if ( throwEnd ) {
/*
* count how many chinese words in "chiSymbolBuf[ 0 .. (throwEnd - 1)]"
This issue is generated by Vulcan for commit: 18ecc77
Coverage: 70.98 percent
Click here for a list of target sources
include/internal/chewing-private.h
src/chewingutil.c
There is(are) 1/17 failed test(s)
Click here for the failed test commands
Clicking on the link, you take the page with code highlighted.
There are a lot of the suspicious code snippets and show 5 among them.
Recommend that split your tests or adde new tests.
Click here for FL information
Suspicious score: 1.00
Vulcan-Demo-Basic/src/chewingutil.c
Line 346 in 18ecc77
Suspicious score: 1.00
Vulcan-Demo-Basic/src/chewingutil.c
Line 406 in 18ecc77
Suspicious score: 1.00
Vulcan-Demo-Basic/src/chewingutil.c
Line 408 in 18ecc77
Suspicious score: 1.00
Vulcan-Demo-Basic/src/chewingutil.c
Line 409 in 18ecc77
Suspicious score: 1.00
Vulcan-Demo-Basic/src/chewingutil.c
Line 410 in 18ecc77
6 patch(es) generaetd by vulcan
plausible patch diff info