Closed Bug 121524 Opened 23 years ago Closed 23 years ago

ABW: Doing 'File->Print Preview'

Categories

(Core :: Print Preview, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED WONTFIX
mozilla0.9.9

People

(Reporter: jrgmorrison, Assigned: rods)

Details

Attachments

(1 file)

ABW: Doing 'File->Print Preview'

This is essentially the same ABW that was noted on bug 118086, but 
it is reached on a different code path. When I do 'File->Print Preview'
I get one ABW as described in this bug, and a second ABW which is the 
same as what is described in the Purify attachment to bug 118086.

You can DUP this bug if you want. I just didn't want to muddy the waters
for the top crash bug by adding more conditions to it.

Steps to Reproduce:
1) Start Mozilla and do 'File->Print Preview' (text or html; doesn't matter)

Actual Results: 
  [E] ABW: Array bounds write in WideCharToMultiByte {1 occurrence}
    - called from nsDeviceContextSpecWin::ShowNativePrintDialog
and
  [E] ABW: Array bounds write in WideCharToMultiByte {1 occurrence}
    - called from GlobalPrinters::GetDefaultPrinterName
      (this one is the one already reported in bug 118086)

See attached Purify details for the first ABW (ShowNativePrintDialog)
this is on of two ABW that shows up doing 'File->Print Preview'. The other 
is described in bug 118086
From the Purify info I understand the the problem is heppening inside PrintDlg?
If so, that is a native Windows toolkit call. Not much I can do for that.

If not, please explain where it is happening.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.9
I had presumed (ass-u-me-d) that this might have been occuring due to not 
allocating something in the struct that was to be passed to PrintDlg. But 
even sample code for PrintDlg seems to throw this ABW. So, I suppose (unless
anyone has a better idea), this may be (a) Purify is confused, or (b) a bug
in the version of the DLLs that I have on win2k.
I changed how we get the default printer. So it is no longer using the PrintDlg
call. It does a GetProfileString, which gets it from the registry.

Plus, I checked in a fix for the Bug 118086, so this may be fixed now. I can
only hope.
With trunk bits pulled ~9pm PST Jan27, I don't get the purify error when 
bringing up the Print dialog (File->Print...). I do get this same ABW when 
I do 'File->Print Preview' since that code path still uses PrintDlg. 

Not sure what to do with this bug, or if the error is real.
Component: Printing → Print Preview
I'll mark this Won't Fix, because it is really "Can't FIX" I think the overwrite
is happen in the OS code.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: