[pso] [Tema5](windows)no of rules
Laura Cristina
laura.cristina04 at gmail.com
Thu Jun 5 21:06:36 EEST 2008
Problema apare cand din user se cere o regula, si firewall-ul are o regula.
In acest caz ar trebui sa se copieze in buffer intai dimensiunea listei de
reguli si apoi regulile.
Codul este urmatorul:
RtlCopyMemory (buffer,&numar_reg,sizeof(unsigned int));//copiaza numarul de
reguli in userspace
RtlCopyMemory (buffer+sizeof(unsigned
int),pachet_reguli,numar_reg*sizeof(struct fwr));
Copierea numarului de reguli in buffer merge, dar la a doua copiere(a
regulilor) moare. Daca copiez doar regulile nu moare, dar "no of rules" nu
returneaza ceea ce trebuie", la fel si daca copiez doar numarul de reguli.
--
Ruse Laura 344C3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080605/0032e4e0/attachment.htm
More information about the pso
mailing list