Bug #6029
Too big buffer is allocated in logtab_rement()
Status:
New
Priority:
Low
Assignee:
-
Category:
nfs - NFS server and client
Start date:
2015-06-24
Due date:
% Done:
0%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
Description
Here in logtab_rement() there is too big buffer allocated:
233 tmpl = (struct logtab_ent_list *) 234 malloc(sizeof (struct logtab_ent));
The sizeof (struct logtab_ent_list) should be enough. Since the struct logtab_ent is bigger than struct logtab_ent_list the only side effect is that we allocate a bit bigger buffer than it is actually needed. This is usually not a big problem because the buffer is freed soon in the logtab_rement().
Thanks to Jeffry for noticing this.
No data to display