summaryrefslogtreecommitdiff
path: root/cpusched.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-10-27 02:00:47 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-10-27 11:38:20 +0100
commit5a59952a9ae0820b939572454374b9df03f04c44 (patch)
tree85f6716fac2faeab7062d361e465be40421b8f10 /cpusched.c
parentd91abbd912399a1d29cc77e4be7b7d6f94014180 (diff)
flowtop: Fix src hostname showed with garbage
Use strlcpy to copy resolved src/dst hostname. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> [tk: Remove superflous min() for size argument] Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'cpusched.c')
0 files changed, 0 insertions, 0 deletions
>)
efi: Fix out-of-bounds read in variable_matches()
The variable_matches() function can currently read "var_name[len]", for example when: - var_name[0] == 'a', - len == 1 - match_name points to the NUL-terminated string "ab". This function is supposed to accept "var_name" inputs that are not NUL-terminated (hence the "len" parameter"). Document the function, and access "var_name[*match]" only if "*match" is smaller than "len". Reported-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Cc: Peter Jones <pjones@redhat.com> Cc: Matthew Garrett <mjg59@coreos.com> Cc: Jason Andryuk <jandryuk@gmail.com> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: <stable@vger.kernel.org> # v3.10+ Link: http://thread.gmane.org/gmane.comp.freedesktop.xorg.drivers.intel/86906 Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Diffstat (limited to 'Documentation/.gitignore')