Closed
Bug 1271131
Opened 9 years ago
Closed 9 years ago
Crashes in _invalid_parameter, inside of nsNotifyAddrListener::calculateNetworkId, on Windows Vista
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
FIXED
mozilla49
People
(Reporter: dbaron, Assigned: bagder)
References
Details
(Keywords: crash, topcrash, Whiteboard: [necko-active])
Crash Data
Attachments
(1 file)
|
1.68 KB,
patch
|
mcmanus
:
review+
|
Details | Diff | Splinter Review |
[Tracking Requested - why for this release]:
This bug was filed from the Socorro interface and is
report bp-aecf27e1-fc4f-455f-bea3-f15c62160507.
=============================================================
A few crashes like this have started showing up in crash-stats:
https://crash-stats.mozilla.com/signature/?product=Firefox&release_channel=nightly&platform=Windows&date=%3E%3D2016-04-01
So far, all 5 crashes have been on Windows Vista.
Presumably a regression from:
https://hg.mozilla.org/mozilla-central/rev/aa730410c52c
which landed a few days ago.
Top of stack is:
0 ucrtbase.dll _invalid_parameter
1 ucrtbase.dll _invalid_parameter_noinfo
2 ucrtbase.dll strcpy_s
3 xul.dll defaultgw netwerk/system/win32/nsNotifyAddrListener.cpp:249
4 xul.dll nsNotifyAddrListener::calculateNetworkId() netwerk/system/win32/nsNotifyAddrListener.cpp:274
5 xul.dll nsNotifyAddrListener::Run() netwerk/system/win32/nsNotifyAddrListener.cpp:311
Flags: needinfo?(daniel)
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → daniel
Flags: needinfo?(daniel)
| Assignee | ||
Comment 1•9 years ago
|
||
Out of the three arguments to strcpy_s(), only the third changes between invokes so clearly inet_ntoa() returns NULL in this case. I'll make a patch that makes sure only non-NULL inet_ntoa() results are used.
| Assignee | ||
Comment 2•9 years ago
|
||
1. Check the inet_ntoa() return value before blindly using it, even if I can't really understand why it would fail but evidence suggests that it happens.
2. I modified the logic slightly to avoid the superfluous first strcpy_s()
Attachment #8750117 -
Flags: review?(mcmanus)
| Assignee | ||
Updated•9 years ago
|
Whiteboard: [necko-active]
Updated•9 years ago
|
Attachment #8750117 -
Flags: review?(mcmanus) → review+
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Updated•9 years ago
|
Comment 4•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•