mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)
This patch catches up on the rest of the work - as much string checking
as is possible is done at compile time, and the rest at runtime.
Lots of code converted to pstrcpy() etc, and other code reworked to correctly
call sizeof().
Andrew Bartlett
(This used to be commit c5b604e2ee
)
This commit is contained in:
@ -178,7 +178,7 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
|
||||
SSVAL(param,6,info_level);
|
||||
SIVAL(param,8,0);
|
||||
p = param+12;
|
||||
p += clistr_push(cli, param+12, mask, -1,
|
||||
p += clistr_push(cli, param+12, mask, sizeof(param)-12,
|
||||
STR_TERMINATE);
|
||||
} else {
|
||||
setup = TRANSACT2_FINDNEXT;
|
||||
@ -188,7 +188,7 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
|
||||
SIVAL(param,6,0); /* ff_resume_key */
|
||||
SSVAL(param,10,8+4+2); /* continue + resume required + close on end */
|
||||
p = param+12;
|
||||
p += clistr_push(cli, param+12, mask, -1,
|
||||
p += clistr_push(cli, param+12, mask, sizeof(param)-12,
|
||||
STR_TERMINATE);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user