vfs: check userland buffers before reading them.
[haiku.git] / src / apps / overlayimage / OverlayApp.cpp
blob8036b345e2f7b97d34400e9d0eb48c0a24fc782a
1 /*
2 * Copyright 1999-2010, Be Incorporated. All Rights Reserved.
3 * This file may be used under the terms of the Be Sample Code License.
5 * OverlayImage is based on the code presented in this article:
6 * http://www.haiku-os.org/documents/dev/replishow_a_replicable_image_viewer
8 * Authors:
9 * Seth Flexman
10 * Hartmuth Reh
11 * Humdinger <humdingerb@gmail.com>
14 #include "OverlayApp.h"
15 #include "OverlayWindow.h"
18 OverlayApp::OverlayApp()
19 : BApplication("application/x-vnd.Haiku-OverlayImage")
21 OverlayWindow *theWindow = new OverlayWindow();
22 theWindow->Show();
26 int
27 main()
29 OverlayApp theApp;
30 theApp.Run();
31 return (0);