mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-03-14 06:22:39 +03:00
Fix Illegal instruction
This commit is contained in:
@@ -21,10 +21,6 @@
|
||||
#define LOGGING_H
|
||||
#include "config.h"
|
||||
|
||||
#define LOG_ERR KERN_ERR
|
||||
#define LOG_INFO KERN_INFO
|
||||
#define LOG_WARN KERN_WARNING
|
||||
|
||||
/**
|
||||
* Defined in args.c
|
||||
*/
|
||||
@@ -39,6 +35,10 @@ extern int ylgh_ndnl;
|
||||
#define DO_SYSLOG (logging_conf.syslog)
|
||||
|
||||
#ifdef KERNEL_SPACE
|
||||
#define LOG_ERR KERN_ERR
|
||||
#define LOG_INFO KERN_INFO
|
||||
#define LOG_WARNING KERN_WARNING
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#define printf pr_info
|
||||
@@ -110,7 +110,7 @@ extern int ylgh_ndnl;
|
||||
(log_message(LOG_ERR, msg, ##__VA_ARGS__))
|
||||
|
||||
#define lgwarning(msg, ...) \
|
||||
(log_message(LOG_WARN, msg, ##__VA_ARGS__))
|
||||
(log_message(LOG_WARNING, msg, ##__VA_ARGS__))
|
||||
|
||||
|
||||
#define lginfo(msg, ...) \
|
||||
|
||||
@@ -401,9 +401,10 @@ pl_incr:
|
||||
curptr += fret;
|
||||
curptr_len -= fret;
|
||||
|
||||
|
||||
if (fr_cr.offset <= crypto_message_len &&
|
||||
fr_cr.payload_length <= crypto_message_len &&
|
||||
fr_cr.payload_length <= crypto_message_len
|
||||
fr_cr.payload_length <= crypto_message_len &&
|
||||
fr_cr.payload_length + fr_cr.offset <= crypto_message_len
|
||||
) {
|
||||
|
||||
memcpy(crypto_message + fr_cr.offset,
|
||||
@@ -418,6 +419,7 @@ pl_incr:
|
||||
}
|
||||
|
||||
out:
|
||||
lgtrace_addp("crypto message parsed");
|
||||
*crypto_message_buf = crypto_message;
|
||||
*crypto_message_buf_len = crypto_message_len;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user