-
-
usr/src/lib/libzfs/common/libzfs_crypto.c (Diff revision 1) This looks like
out of memory
, not invalid uri case. -
usr/src/lib/libzfs/common/libzfs_crypto.c (Diff revision 1) getline()
returns (or should, at least) -1, not some negative number. -
usr/src/lib/libzfs/common/libzfs_crypto.c (Diff revision 1) Don't really need to modify buf2 and buf2len?
-
-
usr/src/lib/libzfs/common/libzfs_util.c (Diff revision 1) Don't you need to
regfree(&hdl->libzfs_urire)
on failures after this line?

jbk got a fish trophy!
-
-
usr/src/lib/libzfs/common/libzfs_crypto.c (Diff revision 1) Should we explicit_bzero() there perhaps?
-
-
-
usr/src/lib/libzfs/common/libzfs_util.c (Diff revision 1) This kind of regex does imply C locale. For example, in et_EE, the z is after s and this regex will exclude chars t...y.
Change Summary:
I forgot to update the regex when I moved the definition. I took the opportunity to improve the error handling a bit as well.
Diff: |
Revision 3 (+396 -201) |
---|