Null pointer dereference when saving ftp resource to disk Topic is solved
Moderator: trava90
Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
- Veit Kannegieser
- Moongazer
- Posts: 10
- Joined: 2019-03-23, 19:16
Null pointer dereference when saving ftp resource to disk
Hello,
i see Pale Moon debian, 64 bit closing when saving a ftp resource to local disk.
Starting in safe mode, or creating a new profile did not help.
I work with local ftp servers here, but it is also reproducible using
<ftp://ftp.elf.stuba.sk/HEADER.txt>
i see Pale Moon debian, 64 bit closing when saving a ftp resource to local disk.
Starting in safe mode, or creating a new profile did not help.
I work with local ftp servers here, but it is also reproducible using
<ftp://ftp.elf.stuba.sk/HEADER.txt>
- Attachments
-
- gdb.log
- gdb log with backtrace
- (6.24 KiB) Downloaded 8 times
Re: Null pointer dereference when saving ftp resource to disk
I'm not getting anything when I try to save the file to disk.
Can you tell us the steps you take when it happens?
Can you tell us the steps you take when it happens?
Re: Null pointer dereference when saving ftp resource to disk
Confirmed, this is a crash in the DOM security check for ftp subresource loading.
You can work around it by disabling the crashing check: Set pref security.block_ftp_subresources to false.
Opened Issue #1710 (UXP) to track this.
You can work around it by disabling the crashing check: Set pref security.block_ftp_subresources to false.
Opened Issue #1710 (UXP) to track this.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Null pointer dereference when saving ftp resource to disk
After reading the issue description I got the crash too.
In my previous message I used the "Save Link As..." entry of the context menu on the provided link, so until the fix is out you can also work around the crash that way, if you don't want to mess with about:config.
In my previous message I used the "Save Link As..." entry of the context menu on the provided link, so until the fix is out you can also work around the crash that way, if you don't want to mess with about:config.
Re: Null pointer dereference when saving ftp resource to disk
Even worse for me cause reasons I outlined in the issue.
Re: Null pointer dereference when saving ftp resource to disk
Crash fix will be in the next release.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Null pointer dereference when saving ftp resource to disk
1
You have a race condition:
You call f.isDirectory(), which returns true.
I replace the directory at path with some ordinary file.
You call f.listFiles(), which returns null.
To avoid this, say File[] files = f.listFiles(); unconditionally, and then change your if to if (files != null).
You have a race condition:
You call f.isDirectory(), which returns true.
I replace the directory at path with some ordinary file.
You call f.listFiles(), which returns null.
To avoid this, say File[] files = f.listFiles(); unconditionally, and then change your if to if (files != null).
Re: Null pointer dereference when saving ftp resource to disk
Not sure what your post is about because it's lacking all context -- and has nothing at all to do with the code where this crash occurred.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Null pointer dereference when saving ftp resource to disk
I think it's about non-atomic file operations, in that if the process scheduler swaps processes between the isDirectory and listFiles calls, a malicious process can create a failure in the browser.
Of course this does not explain why it was posted in this thread.
Of course this does not explain why it was posted in this thread.
- Veit Kannegieser
- Moongazer
- Posts: 10
- Joined: 2019-03-23, 19:16