Bug 51360 - HTML object tag with link to devices /dev cause malfunctions
Summary: HTML object tag with link to devices /dev cause malfunctions
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-30 14:12 UTC by Tilo
Modified: 2003-01-31 03:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tilo 2002-11-30 14:12:57 UTC
Version:            (using KDE KDE 3.0.3)
Installed from:    Compiled From Sources

Embedded an object in a html-page like this:
  <object data="file://dev/mouse" type="text/plain"></object>
If you open this page with konqueror you will loosing your mouse-control. I think you understand:-)
I think there are other devices which can manipulated.

Greetings,
  Tilo Ulbrich
Comment 1 John Firebaugh 2002-12-02 01:58:47 UTC
If that's the case it is your/your kernels fault. 
Comment 2 Dirk Mueller 2002-12-02 02:59:36 UTC
wrong.  
Comment 3 Dirk Mueller 2002-12-02 03:01:52 UTC
there is no crash.  
Comment 4 Tilo 2002-12-02 19:12:40 UTC
Subject: Re:  HTML object tag with link to devices /dev cause malfunctions

Konqi freezing on "/dev/modem" on my computer too (linux kernel 
2.4.10) But it seems to be a not - khtml (or a not - KDE?) bug 
because if I try load "/dev/mouse" in Kate, it's crashing too. And 
normally there should be no reason for a crash because it's only a 
read-event like cat /dev/mouse (but cat doesn't crash?!).
If no more systems are effected we can close my report and I have 
to update my kernel.


Comment 5 Dirk Mueller 2003-01-31 03:40:35 UTC
Subject: kdelibs/kate/part

CVS commit by mueller: 

- ever tried kate /dev/zero ? :-)
CCMAIL: 51360-done@bugs.kde.org


  M +3 -4      katebuffer.cpp   1.90


--- kdelibs/kate/part/katebuffer.cpp  #1.89:1.90
@@ -395,5 +395,4 @@ void KateBuffer::clear()     
   }
   // delete the last loader
-  if (m_loader)
     delete m_loader;
   m_loader = 0;
@@ -447,5 +446,5 @@ bool KateBuffer::openFile(const QString 
   m_loader = new KateBufFileLoader (m_file);
 
-  if ( !m_loader->file.open( IO_ReadOnly ) )
+  if ( !m_loader->file.open( IO_ReadOnly ) || !m_loader->file.isDirectAccess() )
   {
     clear();