Name Description Size Coverage
mar.h We have a MAX_SIGNATURES limit so that an invalid MAR will never waste too much of either updater's or signmar's time. It is also used at various places internally and will affect memory usage. If you want to increase this value above 9 then you need to adjust parsing code in tool/mar.c. 10118 -
mar_cmdline.h Determines MAR file information. @param path The path of the MAR file to check. @param hasSignatureBlock Optional out parameter specifying if the MAR file has a signature block or not. @param numSignatures Optional out parameter for storing the number of signatures in the MAR file. @param hasAdditionalBlocks Optional out parameter specifying if the MAR file has additional blocks or not. @param offsetAdditionalBlocks Optional out parameter for the offset to the first additional block. Value is only valid if hasAdditionalBlocks is not equal to 0. @param numAdditionalBlocks Optional out parameter for the number of additional blocks. Value is only valid if has_additional_blocks is not equal to 0. @return 0 on success and non-zero on failure. 3893 -
mar_create.c Push a new item onto the stack of items. The stack is a single block of memory. 11399 -
mar_extract.c Ensure that the directory containing this file exists 1762 -
mar_private.h The signature block comes directly after the header block which is 16 bytes 2804 -
mar_read.c This block must be at most 104 bytes. MAR channel name < 64 bytes, and product version < 32 bytes + 3 NULL terminator bytes. We only check for 96 though because we remove 8 bytes above from the additionalBlockSize: We subtract sizeof(additionalBlockSize) and sizeof(additionalBlockID) 23376 -
moz.build 650 -