mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
Fix pixel change record bounds check
From cursor review: Insufficient bounds checking for pixel change records (type 2) in renderTileToPixels, extractAvailableTicks, and parseTileData. The code checks for 6 bytes of header data but reads 10 bytes (tick, pixelCount, newColor, oldColor), potentially leading to reading out of bounds. The check should be offset + 10 > tileData.length.
This commit is contained in:
1 parent
2bce506d96
commit
14f69cda11
2 files changed
+5
-4
No files matched your search
@@ -3,6 +3,7 @@ const path = require("path");
|
||||
const webpack = require("webpack");
|
||||
const { merge } = require("webpack-merge");
|
||||
|
||||
// eslint-disable-next-line node/no-unpublished-require
|
||||
const common = require("@clusterio/web_ui/webpack.common");
|
||||
|
||||
module.exports = (env = {}) => merge(common(env), {
|
||||
@@ -32,4 +33,4 @@ module.exports = (env = {}) => merge(common(env), {
|
||||
optimization: {
|
||||
chunkIds: "named",
|
||||
},
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user