linmaogithub / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

Access Vialoation exception inside CPWL_ComboBox::OnKeyDown #205

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The ComboBox is not working properly now.
In version 2469 everything worked perfectly. In version 2483 and later (2519) 
it is not working as it should.

Problem 1: The selected item is no longer highlighted.

Problem 2: If I select an item using the keyboard (arrow up / down arrow) then 
AccessVialotaion exception thrown inside 
CPWL_ComboBox::OnKeyDown -> 
CPWL_ComboBox::SetSelectText() ->
CFX_WideString swText = m_pList->GetText();
m_pList is not initialized, it's have 0xdddddddddddddddd value.

I attach a sample pdf file which have these issues.

Original issue reported on code.google.com by PRumyant...@gmail.com on 27 Sep 2015 at 3:46

Attachments:

GoogleCodeExporter commented 8 years ago
By "2483" you really mean Chromium 46.0.2483.N, right? I'll check this out 
tomorrow.

Original comment by thestig@chromium.org on 2 Oct 2015 at 2:31

GoogleCodeExporter commented 8 years ago
I mean this https://pdfium.googlesource.com/pdfium/+/chromium/2483

Original comment by PRumyant...@gmail.com on 2 Oct 2015 at 3:18

GoogleCodeExporter commented 8 years ago
Are you testing a custom application built on top of PDFium, or Chromium, or 
something else? Happy to take a look, but I'm wondering how you actually 
trigger this code.

Original comment by thestig@chromium.org on 3 Oct 2015 at 1:27

GoogleCodeExporter commented 8 years ago
I have implemented a full-featured viewer based on pdfium. It is written in 
.Net, so I can not cite the source code here.
I wanted to write  a few lines of code to illustrate the problem in your 
project (samples \ pdfium_test) but this is also is broken down in the new 
versions. Your test project just unable to load the file that I attach earlier.
So I could not test on c++, but the following code should to reproduce the 
issue  from the original post:
    FORM_OnMouseMove(form, page, 0, 325.972, 63.321);
    FORM_OnLButtonDown(form, page, 0, 325.972, 63.321);
    FORM_OnLButtonUp(form, page, 0, 325.972, 63.321);
    FORM_OnKeyDown(form, page, 0x26, 0);

Where can I download the sources of pdfium what tested and approved for using 
in Google Chrome? Because all these problems are not present in the browser and 
it works fine.

Original comment by PRumyant...@gmail.com on 4 Oct 2015 at 1:02

GoogleCodeExporter commented 8 years ago
Ah, thanks. That makes it clearer what the context of the problem is. I'll try 
to take a look when I have a chance.

We use the public PDFium source as is in Chromium/Google Chrome. There's no 
secret internal PDFium repo. For a given Chromium X.0.Y.Z release, there's a 
corresponding origin/chromium/Y branch in the PDFium repo in git.

Original comment by thestig@chromium.org on 5 Oct 2015 at 11:12