Summary: | Valgrind crashes with readv/writev having invalid but not NULL arg2 iovec pointer | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Paul Floyd <pjfloyd> |
Component: | general | Assignee: | Julian Seward <jseward> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | mark |
Priority: | NOR | ||
Version First Reported In: | 3.15 SVN | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Patch to solve the problem and update regtest + expected
Update patch to have less inconsistent indentation |
Description
Paul Floyd
2020-07-08 21:38:33 UTC
Created attachment 129990 [details]
Patch to solve the problem and update regtest + expected
With the attached patch paulf> perl tests/vg_regtest memcheck/tests/writev1 writev1: valgrind -q ./writev1 == 1 test, 0 stderr failures, 0 stdout failures, 0 stderrB failures, 0 stdoutB failures, 0 post failures == The patch and the testcase look good to me. Thanks for doing this. Note that the indentation of the first nested if-else in the testcase seems a little off. Created attachment 133152 [details]
Update patch to have less inconsistent indentation
I've tried to make the indentation more consistent. The file has a fairly random mix of tabs and spaces, and the tab alignment is 8 spaces.
(In reply to Paul Floyd from comment #4) > Created attachment 133152 [details] > Update patch to have less inconsistent indentation > > I've tried to make the indentation more consistent. The file has a fairly > random mix of tabs and spaces, and the tab alignment is 8 spaces. It does look consistent now to me. Thanks. Some tests (like this one) don't really follow the indentation of the main code. Don't worry too much about it. It is just convenient if the indentation in one file is consistent. Sorry if I made you do extra work. commit 3aa3482774cf99ba23b7a6eac97d17cf143af5aa Author: Paul Floyd <pjfloyd@wanadoo.fr> Date: Mon Nov 9 09:30:31 2020 +0100 Bug 424012 - fix crash if readv/writev have invalid but not NULL arg2 iovec pointer |