Exploit databaseDownload repository ZIP
GH-557a35ec88cecc5153df8ffeda95d1c2
bob11vrdp/cve-2022-39425
Sources for CVE-2022-39425
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files94
bob11vrdp/cve-2022-39425Revision 1d03f54cf1ec
- ↑..Parent directory
- graphics/
- Makefile.kup
- UIAddDiskEncryptionPasswordDialog.cpp
- UIAddDiskEncryptionPasswordDialog.h
- UIApplianceEditorWidget.cpp
- UIApplianceEditorWidget.h
- UIApplianceExportEditorWidget.cpp
- UIApplianceExportEditorWidget.h
- UIApplianceImportEditorWidget.cpp
- UIApplianceImportEditorWidget.h
- UIAudioControllerEditor.cpp
- UIAudioControllerEditor.h
- UIAudioHostDriverEditor.cpp
- UIAudioHostDriverEditor.h
- UIBaseMemoryEditor.cpp
- UIBaseMemoryEditor.h
- UIBaseMemorySlider.cpp
- UIBaseMemorySlider.h
- UIBootOrderEditor.cpp
- UIBootOrderEditor.h
- UIEmptyFilePathSelector.cpp
- UIEmptyFilePathSelector.h
- UIFilePathSelector.cpp
- UIFilePathSelector.h
- UIFilmContainer.cpp
- UIFilmContainer.h
- UIFormEditorWidget.cpp
- UIFormEditorWidget.h
- UIGraphicsControllerEditor.cpp
- UIGraphicsControllerEditor.h
- UIGuestOSTypeSelectionButton.cpp
- UIGuestOSTypeSelectionButton.h
- UIHostComboEditor.cpp
- UIHostComboEditor.h
- UIHotKeyEditor.cpp
- UIHotKeyEditor.h
- UILineTextEdit.cpp
- UILineTextEdit.h
- UIMediaComboBox.cpp
- UIMediaComboBox.h
- UIMediumSizeEditor.cpp
- UIMediumSizeEditor.h
- UIMenuBar.cpp
- UIMenuBar.h
- UIMenuBarEditorWindow.cpp
- UIMenuBarEditorWindow.h
- UIMenuToolBar.cpp
- UIMenuToolBar.h
- UIMiniToolBar.cpp
- UIMiniToolBar.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
VirtualBox-6.1.38/src/VBox/Frontends/VirtualBox/src/widgets/UIMediumSizeEditor.h
Text · 3,805 bytes/* $Id: UIMediumSizeEditor.h $ */
/** @file
* VBox Qt GUI - UIMediumSizeEditor class declaration.
*/
/*
* Copyright (C) 2006-2020 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef FEQT_INCLUDED_SRC_widgets_UIMediumSizeEditor_h
#define FEQT_INCLUDED_SRC_widgets_UIMediumSizeEditor_h
#ifndef RT_WITHOUT_PRAGMA_ONCE
# pragma once
#endif
/* Qt includes: */
#include <QRegularExpression>
#include <QWidget>
/* GUI includes: */
#include "QIWithRetranslateUI.h"
#include "UIDefs.h"
#include "UILibraryDefs.h"
/* Forward declarations: */
class QLabel;
class QSlider;
class QString;
class QWidget;
class QILineEdit;
/** Medium size editor widget. */
class SHARED_LIBRARY_STUFF UIMediumSizeEditor : public QIWithRetranslateUI<QWidget>
{
Q_OBJECT;
signals:
/** Notifies listeners about medium size changed. */
void sigSizeChanged(qulonglong uSize);
public:
/** Constructs medium size editor passing @a pParent to the base-class. */
UIMediumSizeEditor(QWidget *pParent = 0);
/** Returns the medium size. */
qulonglong mediumSize() const { return m_uSize; }
/** Sets the initial medium size as the widget is created. */
void setMediumSize(qulonglong uSize);
protected:
/** Handles translation event. */
virtual void retranslateUi() /* override */;
private slots:
/** Handles size slider change. */
void sltSizeSliderChanged(int iValue);
/** Handles size editor text edit finished signal. */
void sltSizeEditorTextChanged();
private:
/** Prepares all. */
void prepare();
/** Calculates slider scale according to passed @a uMaximumMediumSize. */
static int calculateSliderScale(qulonglong uMaximumMediumSize);
/** Returns log2 for passed @a uValue. */
static int log2i(qulonglong uValue);
/** Converts passed bytes @a uValue to slides scaled value using @a iSliderScale. */
static int sizeMBToSlider(qulonglong uValue, int iSliderScale);
/** Converts passed slider @a uValue to bytes unscaled value using @a iSliderScale. */
static qulonglong sliderToSizeMB(int uValue, int iSliderScale);
/** Updates slider/editor tool-tips. */
void updateSizeToolTips(qulonglong uSize);
/** Checks if the uSize is divisible by m_uSectorSize */
qulonglong checkSectorSizeAlignment(qulonglong uSize);
QString ensureSizeSuffix(const QString &strSizeString);
/* Holds the block size. We force m_uSize to be multiple of this number. */
static const qulonglong m_uSectorSize;
/** Holds the minimum medium size. */
const qulonglong m_uSizeMin;
/** Holds the maximum medium size. */
const qulonglong m_uSizeMax;
/** Holds the slider scale. */
const int m_iSliderScale;
/** Holds the current medium size. */
qulonglong m_uSize;
SizeSuffix m_enmSizeSuffix;
/** Holds the size slider. */
QSlider *m_pSlider;
/** Holds the minimum size label. */
QLabel *m_pLabelMinSize;
/** Holds the maximum size label. */
QLabel *m_pLabelMaxSize;
/** Holds the size editor. */
QILineEdit *m_pEditor;
/* A regular expression used to remove any character from a QString which is neither a digit nor decimal separator. */
QRegularExpression m_regExNonDigitOrSeparator;
};
#endif /* !FEQT_INCLUDED_SRC_widgets_UIMediumSizeEditor_h */