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)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 210735

People

(Reporter: jpyeron, Assigned: gerv)

Details

Attachments

(1 file, 2 obsolete files)

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:
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
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
Please don't do this. We need to fix the callers instead.
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)) ...
Attachment #134155 - Attachment is obsolete: true
Attachment #134274 - Flags: review?
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.
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?
it is the same reason why I usually dont wrap lines.
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
Attachment #134589 - Flags: review?(jocuri)
Attachment #134274 - Flags: review?
Attachment #134589 - Flags: review?
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.
In addition, the -w parameter to diff is "whitespace", not "windows", and should generally not be used for patches submitted for checking in. Gerv
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]
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 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?
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: