1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-09 00:23:50 +03:00
Commit Graph

7 Commits

Author SHA1 Message Date
Andrew Tridgell
b9eff31b14 This removes the 3rd argument from init_unistr2(). There were 240
calls to init_unistr2() in the code and every one of them got the 3rd
argument incorrect, so I thought it best just to remove the argument.

The incorrect usage was caused by callers using strlen() to determine
the length of the string. The 3rd argument to init_unistr2() was
supposed to be the character length, not the byte length of the
string, so for non-english this could come out wrong.

I also removed the bogus 'always allocate at least 256 bytes'
hack. There may be some code that relies on this, but if there is then
the code is broken and needs fixing.
-
Tim Potter
a4790ba42c More cleanups of validation functions. -
Tim Potter
672c07e243 Stricter validation in python->C conversion functions. -
Tim Potter
736eb3c748 Fixed compiler warning. -
Tim Potter
ac15442579 Remove level and name fields from dictionary copy in py_to_FORM() -
Tim Potter
608b9ab29d Add level field when converting FORM_1 to dict.
More error checking when converting from dict to FORM_1.
-
Tim Potter
ed0a6480f7 Converted drivers, forms and ports functions to use new conversion routines
and exception throwing.
-