commit | 8720c8e576671c7b7c1d65392fcb7fc3cdbc3fbd | [log] [tgz] |
---|---|---|
author | Eric Paris <eparis@redhat.com> | Mon Apr 23 16:13:46 2012 -0400 |
committer | Eric Paris <eparis@redhat.com> | Mon Apr 23 16:57:52 2012 -0400 |
tree | 2d548a3aaf8fdb3eac1ba5f64d85da63266f2f9f | |
parent | 7a86fe1a3decc4c05598eb3f9339175251cd5447 [diff] |
libsepol: allocate enough space to hold filename in trans rules There is an off by one bug in which the filename length stored with filename_trans_rules is stored as strlen (aka, no nul) however the code to allocate space and read the name back in from policy only allocates len, and not the len + 1 needed to hold the nul. Allocate enough space for the nul. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>