+void MiscGUIFuncsTestCase::URLDataObject()
+{
+ // this tests for buffer overflow, see #11102
+ const char * const
+ url = "http://something.long.to.overwrite.plenty.memory.example.com";
+ wxURLDataObject * const dobj = new wxURLDataObject(url);
+ CPPUNIT_ASSERT_EQUAL( url, dobj->GetURL() );
+
+ wxClipboardLocker lockClip;
+ CPPUNIT_ASSERT( wxTheClipboard->SetData(dobj) );
+ wxTheClipboard->Flush();
+}
+