summaryrefslogtreecommitdiff
path: root/proto_vlan_q_in_q.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-11 14:48:10 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-11 14:48:10 +0100
commit2643e4e881eb11c1ca1fbd551ce60f035a32007b (patch)
treea34bda1f3290b504546f25e8ae9682ba475467ec /proto_vlan_q_in_q.c
parent2f43dee3a51eeb96746c0f27bba837b9e423788b (diff)
geoip: Don't NULL-terminate download buffer
The end of the buffer might already contain part of the data payload. Setting the last byte to 0 will thus corrupt the gz file, leading to failed decompression (or previously, to invalid GeoIP database files). The NULL-termination is not necessary in this case, so just omit it. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_vlan_q_in_q.c')
0 files changed, 0 insertions, 0 deletions
correspond to LDS. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20170118132921.19319-1-jslaby@suse.cz Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/testing/selftests/ftrace/samples/pass.tc')