mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
MFV r294101: 6527 Possible access beyond end of string in zpool comment
Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Approved by: Gordon Ross <gwr@nexenta.com> illumos/illumos-gate@2bd7a8d078 This fixes erroneous double increments of the 'check' variable in a loop in spa_prop_validate(). I ran into this in the clang380-import branch, where clang 3.8.0 warns about it. (It is already fixed there.) MFC after: 3 days
This commit is contained in:
parent
effb4b3c8c
commit
9516209bf2
1 changed files with 0 additions and 1 deletions
|
|
@ -610,7 +610,6 @@ spa_prop_validate(spa_t *spa, nvlist_t *props)
|
|||
error = SET_ERROR(EINVAL);
|
||||
break;
|
||||
}
|
||||
check++;
|
||||
}
|
||||
if (strlen(strval) > ZPROP_MAX_COMMENT)
|
||||
error = E2BIG;
|
||||
|
|
|
|||
Loading…
Reference in a new issue