Closed
Bug 223711
Opened 21 years ago
Closed 21 years ago
collectstats.pl: Use of uninitialized value in pattern match (m//) at Bugzilla/Util.pm line 50
Categories
(Bugzilla :: Reporting/Charting, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 210735
People
(Reporter: jpyeron, Assigned: gerv)
Details
Attachments
(1 file, 2 obsolete files)
648 bytes,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Build Identifier:
hmmm, going to check into this
I was working on Bug 183753
Reproducible: Always
Steps to Reproduce:
Reporter | ||
Comment 1•21 years ago
|
||
why are there so many silly things in here...
I can confirm that this occurs. However... instead of just hiding the problem,
should callers of trick_taint be required to pass in a real argument?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 3•21 years ago
|
||
re comment 2: yes, but that is another issue (Bug 223836).
I am just triaging bz right now.
I also just found out when my patch is not applied checkstats fails to run as
expected a second time, hence change to MAJOR issue
Severity: normal → major
Comment 4•21 years ago
|
||
Please don't do this. We need to fix the callers instead.
Reporter | ||
Comment 5•21 years ago
|
||
I agree with you and that is why there is the other bug,
but what is wrong with:
$var=taintedMethod();
# this method returns undef if case X exists otherwise value ...
...
detaint_xxx($var);
...
if (!defined($var)) ...
Reporter | ||
Updated•21 years ago
|
Attachment #134155 -
Attachment is obsolete: true
Reporter | ||
Updated•21 years ago
|
Attachment #134274 -
Flags: review?
Comment 6•21 years ago
|
||
Comment on attachment 134274 [details] [diff] [review]
patch-bugzilla-tip-200310271628.diff
We actually use CVS instead of comments for recording who created the patch and
which bug number was used for tracking it :)
Also the identation in the patch doesn't respect the
http://www.bugzilla.org/developerguide.html standard.
Reporter | ||
Comment 7•21 years ago
|
||
I am sorry if my formatting does not conform, but I am unable to read or write
in the
if (...) {
}
this is a deal breaker (I have a reading/vision problem, it takes a long time
to get used to other ways)
I would be more than happy to file a bug to pretty up my code after each patch
submision?
Reporter | ||
Comment 8•21 years ago
|
||
it is the same reason why I usually dont wrap lines.
Reporter | ||
Comment 9•21 years ago
|
||
sorry, the -w was triming spaces out...
I use the -w(windoz) by habbit since my developers/I deal with CRLF issues 24/7
Attachment #134274 -
Attachment is obsolete: true
Reporter | ||
Updated•21 years ago
|
Attachment #134589 -
Flags: review?(jocuri)
Reporter | ||
Updated•21 years ago
|
Attachment #134274 -
Flags: review?
Reporter | ||
Updated•21 years ago
|
Attachment #134589 -
Flags: review?
Comment 10•21 years ago
|
||
Checking in code that doesn't comply with the style guidelines and filing a bug
to fix it later is a bad idea. Instead, why don't you write the patch using any
method that works for you, and then clean it up before you diff?
The bigger issue is that this needs to be fixed in the callers of trick_taint().
Considering the purpose of the function, there is no reason it should be
handling null input.
Assignee | ||
Comment 11•21 years ago
|
||
In addition, the -w parameter to diff is "whitespace", not "windows", and should
generally not be used for patches submitted for checking in.
Gerv
Reporter | ||
Comment 12•21 years ago
|
||
LOL: yes I know -w is not for windows,
I use an editor from 1992, it sometimes put bad CRLF artifacts in the files.
its only downside is if I indent existing code.
I.E.:
code
[blank line]
code
[blank line]
code
[blank line]
code
[blank line]
Assignee | ||
Comment 13•21 years ago
|
||
I believe this is bug 210735 (at least, the symptoms match), which I've just
checked the patch in for.
Gerv
*** This bug has been marked as a duplicate of 210735 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Comment 14•21 years ago
|
||
Comment on attachment 134589 [details] [diff] [review]
patch-bugzilla-tip-200310311914.diff
Canceling review requests on a closed bug.
Attachment #134589 -
Flags: review?(jocuri)
Attachment #134589 -
Flags: review?
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•