mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 09:58:16 +00:00
#244: ADL array out-of-bound fix
This commit is contained in:
parent
555e339674
commit
4ede3c1f7e
@ -160,11 +160,17 @@ typedef struct ADLODPerformanceLevel
|
|||||||
int iVddc;
|
int iVddc;
|
||||||
} ADLODPerformanceLevel;
|
} ADLODPerformanceLevel;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Attention: we had to change this struct due to an out-of-bound problem mentioned here:
|
||||||
|
* https://github.com/hashcat/oclHashcat/issues/244
|
||||||
|
* the change: ADLODPerformanceLevel aLevels [1] -> ADLODPerformanceLevel aLevels [2]
|
||||||
|
*/
|
||||||
|
|
||||||
typedef struct ADLODPerformanceLevels
|
typedef struct ADLODPerformanceLevels
|
||||||
{
|
{
|
||||||
int iSize;
|
int iSize;
|
||||||
int iReserved;
|
int iReserved;
|
||||||
ADLODPerformanceLevel aLevels [1];
|
ADLODPerformanceLevel aLevels [2];
|
||||||
} ADLODPerformanceLevels;
|
} ADLODPerformanceLevels;
|
||||||
|
|
||||||
typedef struct ADLOD6FanSpeedInfo
|
typedef struct ADLOD6FanSpeedInfo
|
||||||
@ -221,12 +227,18 @@ typedef struct ADLOD6PerformanceLevel
|
|||||||
int iMemoryClock;
|
int iMemoryClock;
|
||||||
} ADLOD6PerformanceLevel;
|
} ADLOD6PerformanceLevel;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Attention: we had to change this struct due to an out-of-bound problem mentioned here:
|
||||||
|
* https://github.com/hashcat/oclHashcat/issues/244
|
||||||
|
* the change: ADLOD6PerformanceLevel aLevels [1] -> ADLOD6PerformanceLevel aLevels [2]
|
||||||
|
*/
|
||||||
|
|
||||||
typedef struct ADLOD6StateInfo
|
typedef struct ADLOD6StateInfo
|
||||||
{
|
{
|
||||||
int iNumberOfPerformanceLevels;
|
int iNumberOfPerformanceLevels;
|
||||||
int iExtValue;
|
int iExtValue;
|
||||||
int iExtMask;
|
int iExtMask;
|
||||||
ADLOD6PerformanceLevel aLevels [1];
|
ADLOD6PerformanceLevel aLevels [2];
|
||||||
} ADLOD6StateInfo;
|
} ADLOD6StateInfo;
|
||||||
|
|
||||||
typedef struct ADLOD6PowerControlInfo
|
typedef struct ADLOD6PowerControlInfo
|
||||||
|
Loading…
Reference in New Issue
Block a user